https://www.theodinproject.com/lessons/ruby-on-rails-blog-app
This app implements more than what was required for this project.
When signed in:
- Users can create, edit, and delete posts
- Users can create and delete comments
When signed out:
- Users can view posts and create comments
Version 3.2.2
Use ruby -v
to see your system version
Version 7.0.5
Use rails -v
to see your system version
Version 4.9
To add the Devise gem check out the README here https://github.com/heartcombo/devise
Postgresql
Make sure you have Postgres installed on your machine. You can follow the instructions here https://www.theodinproject.com/lessons/ruby-on-rails-installing-postgresql
-
Clone the repo
git clone https://github.com/kguyer/Posts
-
Setup the database
bin/rails db:setup
, then migratebin/rails db:migrate
-
Start the server
rails server
-
Visit
localhost:3000
to view the app in your browser