This repository contains a simple front end java script application using React + NextJs connecting to a backend Http Rest Api.
- NodeJs 14:
node --version
- Npm 6:
npm --version
- Npx 6:
npx --version
npm install
npm run dev
npm run build && npm run export
npm run build && npm run start
or
npm run build && npm run export && npm run serve
npm run ncu
npm run open-api-mocker
npm run test
npm run test:run-ci
npm run cypress
npm run cypress:run-ci
npm run cypress -- --env grep="tests jump to bottom and top"
./ci-build.sh
export PORT=4000
export NEXT_BASE_PATH=/my-app
export OUT_DIR=prod_artifact/my-app
export SERVE_DIR=prod_artifact
export CYPRESS_BASE_URL=http://localhost:4000/my-app
./ci-build.sh
npm run serve
npm run mochawesome-merge && npm run marge