frankly-note は Sinatra 製のフランク:)なメモ帳アプリケーションです。
予め PostgreSQL のデフォルトのユーザーで sinatra_db というデータベースを作成しておいてください。
PostgreSQL のインストールとデフォルトユーザーでのログイン。
brew install postgresql
brew services start postgresql
psql postgressinatra_db データベースを作成。
postgres=# create database sinatra_db;
postgres=# \q任意の適当なディレクトリにこのアプリケーションを git clone してダウンロード。
mkdir my_note
cd my_note
git clone https://github.com/Akkkky/frankly-note.gitfrankly-note ディレクトリに移動して bundle install で Gem をインストール。
cd frankly-note
bundle installapp.rb を実行。
ruby app.rbブラウザで http://localhost:4567/ にアクセス。
イェイ!
Ruby 2.7.2 での動作を確認しています。
.ruby-version を設置しているため rbenv がインストールされていれば自動でバージョンを 2.7.2 にしてくれます。
brew install rbenv