Mock trade bitcoin. Start out with $100,000 USD and play the real-time market prices. Your mock digital assets and money are secured on the exchange.
Non-traders and non-investors looking to get a taste of the cryptocurrency space without risking real money.
- User register & sign in
- Show live market price
- Mock buy/sell bitcoin
- View digital asset portfolio
Users can register and sign in using email and password. Our application uses JSON Web Tokens, a stateless authentication mechanism.
With a starting balance of $100,000 USD, users can trade bitcoin at the current market value. Enter the amount you want to buy/sell.
The exchange tracks the live price using Gemini's API. Prices updated in real time using fetch (JavaScript) -- no need to refresh the page!
User balances are saved in the database so your digital assets can be re-accessed with a simple sign in.
rails 5 and postgresql required.
bundle install
rails db:create db:migrate
foreman start
Implementing associationsresolved by reading the guide referenced below and adding the table reference in the scaffold generation command
Generated tests do not pass since I removed some controller endpointsresolved by updating integration tests accordingly
- Association basics http://guides.rubyonrails.org/association_basics.html
- Net:HTTP library http://ruby-doc.org/stdlib-2.5.0/libdoc/net/http/rdoc/Net/HTTP.html
Jonathan Cruz
MIT. Copyright (c) Jonathan Cruz.