FreeCodeCam backend Project || Application that provide stock market data and allow users to add and remove stocks and also have a realtime data update.
-
User Story: I can view a graph displaying the recent trend lines for each added stock.
-
User Story: I can add new stocks by their symbol name.
-
User Story: I can remove stocks.
-
User Story: I can see changes in real-time when any other user adds or removes a stock. For this you will need to use Web Sockets.
Frontend:
-
Reactjs - A JavaScript library for building user interfaces
-
highcharts - charts
Database:
- Mongodb - NoSql Database
backend:
- Nodejs - JavaScript runtime built on Chrome's V8 JavaScript engine.
- Express - Nodejs application framework
API:
- alpha vantage - help connect consumers with great local businesses!
Prerequisite | Version |
---|---|
[MongoDB Community Server] | -- |
Node.js | ~ ^8 |
npm (comes with Node) or yarn (used) | ~ ^5 |
alphavantage API_KEY | -- |
node -v
mongo --version
- Open a Terminal in your projects directory
- Clone this repo
$ git clone https://github.com/jesusantguerrero/stock-market.git
# Install NPM dependencies
npm install
# or If you like yarn
yarn
copy .env.example to .env and change the API KEY:
# Remember place your alpha vantage API_KEY there:
cp .env.example .env
# Start the mongo server in a separate terminal
mongod
# Run the app
npm start
# If you're going to explore the front-end you need to run both npm start for backend and nmp run dev
# to run react development mode
# start the application
npm start
npm run dev