- Implement the polygon.io stock market apis
- stock data is available via an exposed api
- stock data can be filtered via api for cost, gain/loss, percentage performance and name.
- save the best 3 performing stock entities to an sql database daily.
- reporting api for saved stock entities with weekly and monthly groupings.
- TYPESCRIPT
- JAVASCRIPT(Node.js/Express.js)
- Jest
- Supertest
To setup Stock Data System Application Rest API, These tools should be installed in your PC
-
Clone this repo
-
Open the project folder
-
Create a .env file and populate with .env-sample
- Your DATABASE_URL_DEV should be your connection string,
- Your STOCK_DATA_API_BASE_URL
- Your STOCK_DATA_API_KEY
- Open terminal
- Run
npm install
oryarn install
- Run
npm run start:dev
oryarn run start:dev
- Run
npm test
oryarn test