
Build a cryptocurrency portfolio app with Ruby on Rails that lets you add currencies, view current price, rank, and percent change, and track your holdings and profit or loss.
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Learn the prerequisites for setting up Ruby on Rails on Windows, including node, a text editor, Git Bash terminal, and the Heroku toolbar, ahead of installation.
Uninstall any existing Node.js and install the latest LTS release for Ruby on Rails. Download from nodejs.org, select the LTS version, and restart your computer after installation.
Install Sublime Text as your text editor, or use any editor, then install Get Bash to enable secure connections and manage version control with SSH keys.
Generate an SSH key in the bash terminal, create a hidden .ssh directory, and save id_rsa and id_rsa.pub to enable pushing code to GitHub and Heroku.
Install the Heroku toolbelt to connect your terminal to Heroku, enabling deployment of Ruby on Rails apps; download for Windows, set the path, verify installation, and note the free tier.
Install ruby on rails using rails installer, choose compatible ruby and rails versions, and set the path to run rails from anywhere.
RailsInstaller.org is down, you can find the installer here:
https://web.archive.org/web/20210306035811/http://railsinstaller.org/en
Create a test Rails project to verify installation, then troubleshoot bundler and sequel lite gem errors by pinning an older sequel lite version in the Gemfile and running bundle install.
Create a new Rails project named crypto, set up the directory and gemfile, install dependencies with bundle install, then run the Rails server to view the welcome page.
Learn to set up version control with git, initialize repositories, track changes with add and commit, and push code to GitHub to back up and collaborate.
Set up GitHub and SSH keys to back up and push code from your local development environment, create a repository, and push commits with clear messages.
Generate a home controller and index view, run the Rails development server, and replace the default page with a hello world app, illustrating MVC and embedded Ruby in views.
Learn Rails routing by transforming the home page into the root route, editing routes.rb, and understanding how Rails directs pages, with guidance to Rails guides and Ruby on Rails.org.
Create an about page in your rails app by adding a view in home, configuring a route, and defining an about action in the home controller.
Explore how application.html.erb acts as the shared layout, using yield to inject page content across all views. See how embedded Ruby, css, javascript, and csrf load on every page.
Create dynamic navigation in a Ruby on Rails app by using embedded Ruby links like link_to and root_path, replacing hard-coded anchors and leveraging route helpers for automatic updates.
Create and render a Rails partial to keep code clean and reusable, using an underscore-prefixed file and render to include it on the yield page.
Learn to integrate Bootstrap CSS into a Rails app by installing the bootstrap-sass gem (version 3.x), updating app/assets stylesheets and JavaScript, and restarting the server to apply the framework.
Build a mobile-ready bootstrap navbar by adding a container, customizing the brand and links, and removing unused search and dropdown elements, then integrate into your Rails app.
Learn to integrate the coinmarketcap api into a ruby on rails crypto portfolio app, fetch json data for currencies, global data, market cap, and volume, and iterate through the results.
This update video explains CoinMarketCap API changes, recommends sticking with version 1 for compatibility, since version 2 yields different data formats and can break the course logic.
Build a crypto portfolio app with Ruby on Rails by fetching CoinMarketCap data without a gem, using net/http and json to parse and display on the index page.
Explore how an array of Ruby hashes uses key value pairs to access id, name, symbol, and rank, and how JSON is parsed into Ruby hashes for output.
Learn to fetch and display cryptocurrency data by looping through an array of symbols, matching against coins, and printing names, prices, and ranks.
Create a single coin lookup form in a Rails app that posts a crypto symbol to the home look up path, then uses params to display the symbol (like BTC).
Apply robust error handling to the crypto form by normalizing input to uppercase, validating empty input, and preparing currency validation with an allowed list before API integration.
Connect to the API by wiring the look up coin flow, using symbol-based lookup, and add error handling to display results on the lookup page.
Create a user management system with devise for sign-up, sign-in, and sign-out, then set up a second database to hold each user's crypto portfolio in Rails.
Install devise for a rails app by adding the gem and running bundle install. Generate devise install and devise views; set up a home index route and bootstrap flash messages.
Install and configure devise in Rails by generating the user model, creating and pushing migrations, and reviewing the resulting database schema.
Explore how devise creates routes for users, sessions, and registrations in a Rails app. Learn to sign up, sign in, edit user registrations, and view the resulting flash messages.
Create a dynamic navigation bar with Devise links for sign up, log in, log out, and edit profile, adapting shown options to whether a user is signed in.
Apply bootstrap styling to the login form by wrapping inputs in form-group, adding form-control to fields, styling the button as btn-primary, and wrapping the form in a panel.
Build bootstrap-styled devise panel views for a Ruby on Rails crypto portfolio app, wrapping forms with headers and footers and enabling responsive sign up, log in, and profile pages.
Learn how to build a user-specific crypto portfolio database in Rails by creating a portfolio table, linking it to users, and tracking name, symbol, amount bought, and price per unit.
Create a Kryptos portfolio database table with a Rails scaffold, defining symbol (string), user_id (integer with index), cost per and amount (decimal), then push the migration to update the schema.
Explore scaffold-generated portfolio view pages for a crypto app, linking each crypto to the current user and enabling create, read, update, and delete actions.
Add Kryptos navigation links to the bar and enforce sign-in with before_action authenticate_user to restrict creating new Kryptos and improve routing.
Apply rails associations to link users with their kryptos, using has_many for users and belongs_to for kryptos, ensuring listing shows only kryptos belonging to the current user via user_id.
Expand associations by filtering crypto records to the current user, hide sensitive fields, and enforce signed-in access to user-specific crypto listings.
Define the correct user with a before action and a find_by lookup to enforce authentication and authorize access, ensuring users view, edit, or destroy only their own kryptos.
Bootstraps the listing page table with bootstrap styles like striped and hover, and connects to the coin market cap API to display name, symbol, rank, price, percentage change, and cost.
Connect the database to the crypto api by updating the Kryptos controller and index view to look up crypto data and symbols, then render names in a table.
Clean up the list page by removing extra columns and turning the name into a link to the show page, streamlining the crypto portfolio app in Ruby on Rails.
Learn to add a current price and compute total value in a Ruby on Rails crypto portfolio, converting API price strings to decimals and handling currency formatting with number_to_currency.
Learn how to calculate profit and loss in a crypto portfolio app by comparing total paid to current value, add columns for cost paid per unit and total paid.
Implement percentage changes—one hour, 24 hour, and seven day—after current price to enhance trend analysis in the Ruby on Rails crypto portfolio app.
Implement a running total of profit and loss in a Ruby on Rails crypto portfolio app, initialize profit_loss to zero, update with plus equals, and display on the index.
Tweak the crypto show page in a Ruby on Rails app by refining the panel layout and integrating coin market cap API data for name, symbol, price, and rank.
Learn how to publish a crypto currency portfolio app to production with Ruby on Rails and Heroku, using the free plan, terminal deployment, and gem file tweaks.
Commit your code, push to heroku, configure production and development groups, deploy with bundle install --without production, log in, upload ssh keys, create and rename the app, go live.
Push your code to Heroku and fix gem version issues to deploy a production Rails app. Migrate the database on Heroku with rake db:migrate to enable production data.
Purchase a custom domain from Namecheap or GoDaddy, point its DNS to your Heroku app, then add the domain in Heroku settings and enable SSL with a paid addon.
Promote a bonus lecture offering a limited-time lifetime membership discount on all courses, plus access to a vast library and completion certificates.
Ruby on Rails can seem overwhelming at first, but it doesn’t have to be! In this course I’ll walk you through it step by step and you’ll be building your first web app in MINUTES. You’ll be amazed how quick and easy it is to create very professional looking websites, even if you have no programming or web design experience at all.
Watch over my shoulder as I build a cool Crypto Currency Portfolio app step by step right in front of you. You’ll follow along and build your own copy. By the time we’re finished, you’ll have a solid understanding of Ruby on Rails and how to use it to build awesome web apps.
This course is aimed at the absolute beginner, you don't need any coding experience at all!
The course contains 47 videos – and is just over 3 hours long. Watch the videos at your own pace, and post questions along the way if you get stuck. You don’t need any special knowledge or software to take this course, though any experience with HTML or CSS is a plus. You don’t even need to know the Ruby programming language. I’ll walk you through EVERYTHING.
Ruby on Rails is a great web development tool and learning it has never been this easy.
What We'll Build...
We'll build a cool Crypto Currency Portfolio app that let's you look up crypto quotes and price information and save it to a database.
Users can create an account and sign up to your website, log in, add crypto currencies and coins, check current prices and all kinds of other cool things.
We'll style the website using the popular Bootstrap CSS framework (I'll show you how to use it!)
If you're into crypto-currencies like bitcoin, ripple, ethereum, ada, xlm, or any others; this course will be a LOT of fun. But even if you aren't into crypto stuff, this course will still be a lot of fun and you'll learn a lot of core Ruby on Rails things.
Sign up today and I'll see you on the inside!
-John Elder