Creating a Blog using Ruby and Rails- Part 1

Create a Demo Project
ADD NAME OF PROJECT AND CLICK CREATE
Click on Open to start project
click on ssh terminal to start terminal and development command.

Environment Setup and Configuration.

  1. Check RVM version rvm — version and get stable with command rvm get stable
rvm --version
ruby --version
nvm ls-remote
Latest version of ruby.
nmv install 14.15.5

- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.listsudo apt update && sudo apt install yarn
gem install rails

Creating a Blog skeleton in rails and configure to be able to view the starter page.

Let create a blog with the following command.

  1. Rails new command to create a blog… you can name your blog anything. I am going to call my blog
rails new blog
cd blog
Cd into blog
config.hosts << “kheblog-randi290.codeanyapp.com”
rails s — binding=0.0.0.0
server show starting

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Khemlall Mangal

Khemlall Mangal

31 Followers

I am a passionate coder, QA Engineer, and someone who enjoys the outdoors.