- Set up local environment (Ruby, etc.)
- Download or clone a repository
- Run bundler and yarn to install required gems and dependencies
$ bundle install
$ yarn
- Create
.env
file by example.env.example
$ cp .env.example .env
If necessary, you can run PostgreSQL and Redis locally using Docker
Make sure you are using Docker Compose V2
% docker compose version
Docker Compose version v2.3.3
(service.yml
configured to run PostgreSQL)
$ docker compose -f services.yml up -d
- Create and set up a database for the project
$ rails db:prepare
- Start project
$ bin/dev
The project is available at the link http://localhost:3000/
This is an educational practice from the course Ruby on Rails 6: Startup MVP: School Attendance Tracking App by Yaroslav Shmarov