https://github.com/tgorka/productprices
Present prices of the products
https://github.com/tgorka/productprices
angular angular4 api gulp javascript js mongo mongoose node rest typescript
Last synced: 3 months ago
JSON representation
Present prices of the products
- Host: GitHub
- URL: https://github.com/tgorka/productprices
- Owner: tgorka
- License: mit
- Created: 2017-05-01T11:32:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T22:28:54.000Z (about 9 years ago)
- Last Synced: 2025-03-05T08:16:29.306Z (over 1 year ago)
- Topics: angular, angular4, api, gulp, javascript, js, mongo, mongoose, node, rest, typescript
- Language: TypeScript
- Size: 268 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Productprices
This client part was created with [Angular CLI](https://github.com/angular/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](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
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`