In this project, I created all controllers and views for my Blog app. I added simple placeholders for my views with plain HTML.
- Ruby.
- Rails.
- PostgreSQL.
- Linters.
- Install Ruby based on your OS from HERE.
- Install Rails by running this order in your terminal
gem install rails
(good luck with that). - Install PostgreSQL from this link.
- Clone the project using git-bash or Githup Desktop.
- Open the project folder with VSCode or any Editor.
- Open terminal and navigate to the project folder.
- Install all gems by run this command
bundle install
- Open
database.yml
file inside./config
folder and put your username and password. - Run
rails db:create
andrails db:migrate
to create and migrate the database then runrails db:seed
to seed data or to do all that in one command just typerails db:reset
. - Type
rails s
to run live server. - Open your browser on this link.
- Insure that you run
bundle install
on your terminal first. - To run tests run this command
rspec
.
👨💻 Omar Muhammad
- GitHub: @Omar-Muhamad
- Twitter: @Eng_OmarMuhamad
- LinkedIn: @eng-omarmuhammad
Give a ⭐️ if you like this project!
This project is MIT licensed.