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
cd
into 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
.env
file in the root directory of this project API.$ touch .env
-
Add the API keys to your
.env
file 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
.env
file to your.gitignore
.
$ rails s -p 3001
This will start the server on port 3001.