Skip to content

tgorka/productprices

Repository files navigation

Productprices

This client part was created with Angular CLI version 1.0.1. Angular4, Materialize, ngx-datatable, typescript, ES6. The server part was done using gulp, ES6, typescript, express, mongoose, mongoldb

Frontend development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Frontend Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Running server

Before running server the frontend parts needs to be build in production mode using yarn run build Then to run server yarn run start

The default node scripts will run gulp task to run the server. All the configurations are in config.ts - for the server part and in client/environments for the frontend part.

Server documentation

there is swagger documentation for the REST API on the endpoint /doc