Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 950 Bytes

README.md

File metadata and controls

70 lines (51 loc) · 950 Bytes

Product frontend

Install dependencies

Arch Linux

yay -S docker docker-compose docker-credential-pass nodejs npm chromium

Basic setup of a project like this

npx create-react-app test-app2 --template=typescript

Eslint & Prettier

npm init @eslint/config

And the install puppeteer:

npm install puppeteer puppeteer-core jest-puppeteer

Then all of the configuration and such is needed

Run

# remember to install first
npm i

# start
npm start

Docker

docker build -t product-react-app .
docker run -d -p 80:80 product-react-app

Open:

http://localhost

E2E tests

Chromium needs to be installed due to puppeteer being used.

yay -S chromium

Get the path to it:

whereis chromium

And set it to that path in the e2e test files for executablePath.

Run E2E tests

You may need separate terminals

npm start
npm run test:e2e