GithubHelp home page GithubHelp logo

chiraag-kakar / railsblog Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 1.0 436 KB

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

Home Page: https://chiraag-kakar.github.io/RailsBlog/

License: MIT License

paiza-io cloud rails blank-rails ide cloud-service cloud-ide blog project

railsblog's Introduction

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 :

  • The RailsBlog is built upon the Paiza Cloud Platform.
  • Sign up for the mentioned cloud service.
  • On the free plan we can use the server / container (we will be creating) for 24 hours after which the server will be restored.
  • Also the server gets suspended after 240 minutes of usuage.
  • So the free plan is more than enough if we can patiently built the project within the stipulated period.

Alternative Platforms :

  • AWS Cloud9 is another popular cloud-based Integrated Development Environment (IDE)

Let's get started :

Create a Blank Rails App -

  • After signing up to the cloud service with the credentials (mail or username and password) create a new server.
  • Then go to the terminal and create a blank rails app using the following command :
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 -

  • Inside the main Rails folder "blog" , there will be "gemfile"
  • Inside that file replace the following line :
gem 'sqlite3'

with

gem 'sqlite3', '1.3.13'
  • Also make sure that the Autosave box is checked.

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

railsblog's People

Contributors

chiraag-kakar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

saup21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.