- Ruby 2.7.2
- Ruby on Rails 6.1.4
- PostgreSQL 12.9
git clone https://github.com/pavry/pharmacy
Rename the database_example.yml into database.yml and add username and password key to the default group.
Path to database_example.yml: /config/database_example.yml
Substitute the settings of the local user Postgres.
sudo su - postgres
psql
CREATE ROLE your_user WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'your_password';
Run the following commands to create and migrate the database.
rails db:setup
rails db:migrate
bin/rails server
And now you can visit the site with the URL http://127.0.0.1:3000/