- Run
npm i
- [!Important] Use Visual Studio Code for development Not only it provides better intellisense and type checking, it has a few default linting rules that apply automatically as you code.
- Install
Angular Language Service
VSC extension to get even better intellisense. - Install
ESLint
VSC extension for real time linting error information.
If you just got latest, make sure you have all dependencies installed:
- Run
npm i
If you want to develop with mock data, the just run npm start
.
If you want to run front-end against the server, you need to start it.
Start the server on port 5000. You can do it via running docker commands from the opp
directory:
docker build -t opp .
docker run -p 5000:5000 -it opp
Then run one of the following commands, which will start local dev server, but point any /api requests to the running instance of Opp server
npm run start:with-server
- Open docker container console and run:
python3 dummy_data.py
Modify the dummy_data.py
script to adjust number of categories/items generated
- generate cert files - run
./cert/makeCert.bat
- register the generated certificate in your OS
npm i -g http-server
- only oncenpm run build:prod
- this creates production build in ./dist foldernpm run server:dist
- serves files from ./dist- open
https://localhost:8080/
- username: demo
- password: demo
- passphrase: phrase
npm run build
.
Creates assets to be deployed to production server
npm run build:prod
Creates assets to be deployed to the demo server
npm run build:demo
npm run test
npm run lint
npm run build:stats && npm run source-map-explorer