StockItUp is a web-based stock portfolio app written using Ruby on Rails for the NYC TTP fullstack assessment. It lets a user create a unique account based on email address, 'buy' stocks within a $5000 USD starting budget, and see a list of stocks owned and transactions / trades completed.
StockItUp was built on Ruby 2.6.3 and uses Bundler to install gem dependencies. You'll probably need a similar set-up to get it to run correctly.
- First, clone or download this repo.
cd
into thestock-app
directory inTTP-FS
and runbundle install
to install all the required gems.- Enter
rake db:migrate
to run the database migrations. - Start the rails server by typing
rails server
orrails s
.
- Create an account with name, email, and password.
- After signing in, you'll land on the Portfolio page.
- Purchase some shares by entering a valid stock ticker symbol and a whole number of shares.
- Your purchase will fail if your balance is too low to cover the transaction.
- Click the Transactions link at the top of the page to see a list of all of your trades.