The REST API allows user to maintain a watchlist on the stock market and users will be able to query the latest transaction information upon login.
- Maintaining a personalised stock watchlist
- Query of latest transaction information for stocks on watchlist
- Token Expiration within 30 minutes
- Node.js - JavaScript runtime engine
- Express - The web framework
- Mongo DB - The database
- Mongoose - MongoDB object modeling
- PassportJS - Authentication Middleware
- marketstack - The market data provider
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to install MongoDB and start your DB server.
You will need to acquire a free API key from marketstack .
You can test the API behaviour by using web service testing application.
Run the following in terminal to install project dependencies.
git clone https://github.com/ngyl88/project-express-stock
npm install
Run the following to trigger the tests.
npm test
Set up .env
or .envrc
. Start the local server and test on the listening port.
ALPHAVANTAGE_API_KEY=
API_KEY_WORLD_TRADING_DATA=<YOUR_MARKETSTACK_API_KEY>
JWT_SECRET=
MONGODB_URI=
# CORS
CONSUMER_REACT_APP_FRONTEND_URL=
See the tags on this repository.
- YL Ng - Initial work
See also the list of contributors who participated in this project.
- Hat tip to anyone whose code was used
- ThoughtWorks JumpStart! 2018 program