Money Box is a web application designed to help you track and manage your stock portfolios all in one place. Equipped with real-time trade data, news and historical stock data, managing your portfolios just got easier.
This is the Ruby on Rails Backend API for Money Box. You can access the Frontend here.
-
Install Homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" -
Install Ruby
$ brew install ruby -
Install Ruby on Rails
$ gem install rails -
Install PostgreSQL
$ brew install postgresql
-
Clone this repository and
cdinto the directory -
Install dependencies
$ bundle install -
Initiate the database and migrate
$ rails db:create db:migrate
In order to take advantage of all features of Money Box, you must secure your own API keys for the following APIs for use.
-
Register for developer API keys for the following:
-
Create a new
.envfile in the root directory of this project API.$ touch .env -
Add the API keys to your
.envfile by copying the following and replacing the<...>with the correct corresponding key.IEX_API_KEY=<IEX API KEY HERE> FINNHUB_API_KEY=<FINNHUB API KEY HERE> TD_AMERITRADE_API_KEY=<TD AMERITRADE API KEY HERE>
-
Remember to add the
.envfile to your.gitignore.
$ rails s -p 3001This will start the server on port 3001.