You can watch entire series on Eduonix Website.
https://www.eduonix.com/dashboard/Learn-Ruby-on-Rails-By-Building-Projects
How to Setup the Project....
- Clone the Project
- Download XAMPP https://www.apachefriends.org/index.html
- Download PhpMyAdmin https://www.phpmyadmin.net/downloads/
- Create Database -> bookstore_development
- Run Command -> gem install
- Start Appache Server
- Run Command rails db:migrate
- Run Command -> rails s
How to Setup MySql DB:
Used MySql in this project:
To Setup Mysql got to the -> bookstore/config/database.yml Setps to Setup your DB
- You can define adapter -> Which db you are going to use
- Change your Username & Password to whatever you have at your local machine
- Provide Name of your DB Which you have created on PHP MyAdmin in my case it is -> bookstore_development
- Change you port you can check your port on XAMPP Control Panel Example: adapter: mysql2
username: root password:
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> development: <<: *default database: bookstore_development port: 3306
- You are all set run your server and Wullah
How to StartServer: rails s Sometimes you are not beign able to start the server as previous service is still running in the backgroun just type: shutup gem install shutup