In this project, I created all controllers and views for my Blog app and added simple placeholders for my views with plain HTML.
- Use controllers to handle requests and render empty views.
- Install Ruby on Rails framework.
- Use Ruby Gems as a software packages system.
- Understand Rails naming conventions.
- Use params from browser requests in a safe way.
- Ruby
- Rails
- Postgresql
- Rubocop
To get a local copy up and running follow these simple example steps.
-
Install rails by running
gem install rails
-
git clone git@github.com:faizi2500/blog-app.git
-
cd blog-app
-
rails db:create
-
rails db:migrate
-
rails db:seed
-
Run
rails s
and go to http:localhost:3000 to view the app.
- Run
bundle install
to install all the necessary gems - Run
bin/rails db:create
andbin/rails db:migrate
then runrails s
- Go to the browser and type
localhost:3000
to see the app
-
Run
gem install rspec
to install Rspec, -
Run
rspec spec
to run all the test cases, and -
Run
rspec spec/name_of_test_file.rb
to run test cases individually.
👤 Faizan Zahid
- GitHub: @faizi2500
- Angelist: @faizan_2500
- LinkedIn: @faizan2500
👤 Rida Arif
- GitHub: @ridaarif98
- Twitter: @ridaarif
- LinkedIn: Rida Arif
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!