#+TITLE: Ruby on Rails Setup in Windows Machine :computer: #+DATE: Sat Apr 27 08:41:05 +0545 2019 * Install gitbash *** Download - [[https://www.youtube.com/watch?v=rWboGsc6CqI][VIDEO LINK]] - [[https://git-scm.com/download/win][DOWNLOAD LOCATION]] *** Verify #+BEGIN_SRC shell press Win(key) + R shortcut type cmd then ENTER type git then ENTER #+END_SRC * Install ruby + devkit *** Download - [[https://rubyinstaller.org/downloads/?fbclid=IwAR1JH5jBWZzbzHYClU5TBkKr3AVoDxc3bHImb9OkEoCZalyduyeFwSi_3Vk][DOWNLOAD LOCATION]] *** Verify #+BEGIN_SRC shell press Win(key) + R shortcut type cmd ENTER type ruby --version ENTER #+END_SRC * Install sqlite *** Download - [[https://sqlite.org/download.html][DOWNLOAD LOCATION]] - [[https://www.youtube.com/watch?v=w7-oOIRIhiQ][VIDEO LINK]] *** Verify #+BEGIN_SRC shell press Win(key) + R shortcut type sqlite3 then ENTER #+END_SRC * Install an editor - [[https://aka.ms/win32-user-stable][VSCODE DOWNLOAD LINK]] - [[https://notepad-plus-plus.org/download/v7.6.6.html][NOTEPAD++ DOWNLOAD LINK]] * creating rails server - Open the cmdline - run following command #+BEGIN_SRC shell gem install --no-ri --no-rdoc rails # verify rails --version #+END_SRC - Once the rails has installed let's create first rails project #+BEGIN_SRC shell rails new blog #+END_SRC *** NOTE: when rails new command fails with sqlite error - FIX: gem install sqlite3 -v '1.4.0' — source 'https://rubygems.org/' [[https://medium.com/@declancronje/installing-and-troubleshooting-ruby-on-rails-sqlite3-windows-10-fix-87c8886d03b?fbclid=IwAR1thEfp_-gFzVlTJ3i2wrYYuVNTIXUIEWiAajrScARs7eaZAGKywqDdzVw][Details here]] * Getting started with the rails 💪 - [[https://guides.rubyonrails.org/getting_started.html]] * Update this GIST #+BEGIN_SRC gist -u b94500b09d528c8a0fe3c5df1ea28ca2 setup.org #+END_SRC