An open API service indexing awesome lists of open source software.

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

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`