Skip to content

faizi2500/blog-app

Repository files navigation

Blog app

In this project, I created all controllers and views for my Blog app and added simple placeholders for my views with plain HTML.

The learning objective of this project are

  • 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.

Built With

  • Ruby
  • Rails
  • Postgresql
  • Rubocop

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Setup

  • 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.

Running The App

  • Run bundle install to install all the necessary gems
  • Run bin/rails db:create and bin/rails db:migrate then run rails s
  • Go to the browser and type localhost:3000 to see the app

Test

  • 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.

Authors

👤 Faizan Zahid

👤 Rida Arif

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published