A back-end to serve a financial service using a third party api by Finhub.
- For development, you will only need Node.js, Yarn, MongoDb and a API Token to access Finhub financial api, installed in your environement.
- You can find more information about the installation on the official Node.js website and the official NPM website.
- You can find more information about the installation on the official MongoDB website .
- You can find more information about the installation on the official Yarn website.
- You can find more information about how to retrieve your token on the official finhub website.
$ git clone https://github.com/Thiago-AS/node-trade-wallet.git
$ cd node-trade-wallet
$ yarn
- Set you finhub token as a environment variable:
FINHUB_TOKEN=YOUR_TOKEN
- You can change both the server port as the database using the following environment variables:
MONGODB_URI=DB_URI
PORT=SERVER_PORT
- To run in development environment with hot reload use:
$ yarn run dev
- To run in development environment use:
$ yarn run prod