RailsBlog

A Blogging platform built using Ruby on Rails with the help of Paiza Cloud IDE.

šŸ˜ƒHit that ā­ button to show some ā¤ļø

Inroduction to the Platform :

Alternative Platforms :

Letā€™s get started :

Create a Blank Rails App -

rails new blog

ā€˜blogā€™ will be the name of our application.

The dependencies will take some minutes to install.

Changing the database engineā€™s version to the required version -

gem 'sqlite3', '1.3.13'

After making changes in the gemfile , enter the following commands in the terminal to update and install the specified version of dependencies :

cd blog
bundle install
bundle update

Activating the Server :

The server can be activated by any one of the following commands :

rails server -b $IP -p $PORT

or

rails server

or

rails s

Creating Blog Posts

rails generate scaffold Post title:string body:text

Rails will create a bunch of folders with functionalities in the app directory.

Modifying Database

rake db:migrate

Restarting the server

rails s -b $IP -p $PORT

The database thus gets modified so that we can store blog posts.

License

This project is licensed under the MIT License - see the LICENSE.md file for details