An app that simulates buying, selling, quoting and tracking stock prices Technologies used:
- MongoDB for database
- NodeJS (Express) as backened techonology
- JSON Web Tokens for authentication
- EJS, CSS and SCSS for styling
- FinnHub Stocks API for Stocks data
- Clone the repository with command:
git clone https://github.com/ogi1998/Stocks-Simulator.git
- Install necessary packages with command:
npm install
- you should have .env file at the root of the project with following configuration (also see
.env.example
file):DB
- this should be connection string for the MongoDB databaseJWT_SECRET
- is a secret string for JWT authentication- to generate random string you can do the following:
- Open console
- type
node
to open node console - type following command :
require('crypto').randomBytes(64).toString('hex')
- copy the key and paste it in
.env
file
- to generate random string you can do the following:
API_KEY
- this is API key for the FinnHub Stocks API, to generate it:- Go to FinnHub
- Create a free account
- Generate an API Key
- Paste it in
.env
file
- run
npm start
to start the application