Making a full-stack blog in Rails from a udemy course. Updated to Rails 6.
-
CRUD - C = New/Create, R = Read/Show, U = Edit/update, D = Destroy
-
Articles, Categories and Users Models - Everything is made from stratch without using Auth gems.
-
Only Admins can create categories, they can RUD articles and users.
-
All Articles are public, but only users who create it can UD it.
-
Bootstrap for styling the App.
-
Clone this repo:
$ git clone https://github.com/cdadityang/alpha-blog.git
-
Check locally if the app is working properly:
$ cd alpha-blog $ bundle install --without production $ rake db:migrate $ rails s -
Goto localhost:3000 and check all the working.
-
Create a app on Heroku and then add your app/keys for this app. You can look here on how to do that. Note: You will need Heroku CLI
-
Push code to heroku: (heroku will automatically setup pg database)
$ git push heroku master $ heroku run rake db:migrate
-
Ezzy Pezzy - Go to the URL provided by heroku when you created the app.