Plenty of programming languages are available and new are merging everyday to simplify coding.
One of the famous one is Ruby on Rails. I am writing these posts as i am going through learning Ruby On Rails.
I will highlight the do’s and dont’s as i discover during my exploration in this programming language. Hope these speed up your process in learning.
OS Used : Ubuntu 16.10
Editing Tool : Atom 1.8.0
Browser : Firefox 47.0
What is Ruby --> Dynamic and Object Oriented Programming language emerged in mid 1990
What is Rails --> A web development framework written in Ruby programming language
What is Ruby on Rails --> Is a 100% Open source web development framework constantly updated by community and provides easy development and deployment web applications.
Setup Ruby on Rails
Step 1 --> Install necessary
sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
Step 2 --> Get rbenv
cd git clone https://github.com/rbenv/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL
Step 3 --> Get ruby
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL
Step 4 --> Install Downloaded items
rbenv install 2.3.1 rbenv global 2.3.1
Step 5 --> Check Ruby Installation
Step 6 --> Install Bundler
gem install bundler
Step 7 --> Make Bundler Executable
Step 8 --> Install NodeJS
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs
Step 9 --> Install Rails
gem install rails -v 4.2.6
Step 10 --> Make Rails executable
Step 11 --> Check Rails Installation
Step 12 --> Install MySQL
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
Stay tuned for Part 2 – Creating our first application