How to develop Rails app with Wazaterm

1. Install rbenv

We need to install ruby before rails. You may have ruby from the system but it's better to have a specific ruby version for a project. Get rbenv from github.

$ git clone ~/.rbenv
$ git clone ~/.rbenv/plugins/ruby-build

Set path and initialize it.

$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ ~/.rbenv/bin/rbenv init
$ source ~/.bashrc

2. Install ruby

$ rbenv install -l # check which version you can use
$ rbenv install 2.7.2 # the latest or previous one 
$ rbenv global 2.7.2

3. Install rails

$ ruby --version # to confirm version
$ gem install rails

4. Create new app

$ rails new myapp
... follow 
$ rails server -p 3000 # or 5000 or 8080

5. Access to server from browser

Open terminal and click icon next to Port 3000 so that the page is opened.