This project was generated with Angular CLI version 1.0.0.
Run yarn dev
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class/module
.
Run yarn build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
We are using cypress for e2e testing and the whole setup lies in e2e
folder.
To run e2e tests you need to have backend project installed in sibiling directory named otp-api
.
Go to e2e
folder and run npm install
to install all the dependencies.
Then start both backend and frontend projects running ./start-server.sh
script. If both servers are running you can either run cypress run
or cypress open
to run the tests.