What you need to install
node.js
$ npm i
$ npm run start
Server runs on mongodb://admin:[email protected]:61610/stocks28
/stock
/user
GET /stock
params: (symbol[string]: required, //Each company has its own unique Symbol eg.Facebook: FB, Netfilx: NFLX)
POST /stock/:symbol
PATCH /stock
params: (symbol[string]: required, //Each company has its own unique Symbol eg.Facebook: FB, Netfilx: NFLX)
GET /stock/:symbol
body: (Name [string]: required) (personalID [string]: required, unique)
POST /user
GET /user
params: (personalID[string]: required)
GET /user/:personalID
body: (asset [string]) (investment [Number], //asset is the company symbol ) params: (personalID[string]: required)
PUT /user/:personalID
params: (personalID[string]: required)
POST /user/:personalID
src/config/config.js
In this file you will be able to configure :-
dbURL: URL to remote MongoDB
- Ahmed Hegab - Github link - AKhalil609