- Install Mise
- Install System dependencies
- Install Just
just setup
just db-setup
just devEdit the secrets variables
-
If you are starting over:
# 1. create .env file cp .env.template .env # 2. create a key rake secret | tail -1 | cut -c1-32 > config/master.key
-
Then create a Credentials file using
rails credentials:editand add the following content:secret_key_base: xxxxxxxx google_key: xxxxxxxx api_user: xxxxxxxx api_pass: xxxxxxxx smtp: address: xxxxxx.xx.com domain: xxxxxxxxxx.com user_name: xxxx@xxxxxxxx.com password: xxxxxxxx
Start PostgreSQL DB (with docker)
docker run --name reg -p 5432:5432 \
-v ~/dev/data/reg:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=123456 -d postgres:13
# or using Podman
podman run --name reg -p 5432:5432 -e POSTGRES_PASSWORD=123456 -d docker.io/library/postgres:18add in your .env file the following variables:
DATABASE_URL=postgresql://postgres:123456@localhost:5432