This project is the result of the workshop available at https://ukko.mx.
This workshop explores the basics of Ruby on Rails. It covers:
- MVC basics
- The structure of a Rails app
- The Gemfile
- Creating a Rails appliaction for a simple online shop:
- Creating a Product model
- Creating logic and views for managing products
- Attaching images to product
- RubyGems and gems
- User authentication with Devise
- Rails' assets pipeline
- Landing page with products
- Sign up at https://heroku.com
- Install Heroku CLI
- Login with heroku
- Enter
heroku create
from your app directory
To deploy your app enter the following command from your app directory. Your project must have git initialized for heroku to work.
git push heroku master
To setup the database and migrations run:
heroku run rails db:migrate
Create user to login in the app:
heroku run rails c
User.create(name: 'Admin', email: 'admin@test.com', password: '123456', password_confirmation: '123456')