Website for aspirational alcoholics.
For local development, you need Docker and Docker Compose.
- Start the local database and pgAdmin with
docker compose up -d
You can access pgAdmin at localhost:8888
, with the email root@example.com
and password hunter2
Register the database under Servers, use reddari-db
as the hostname and postgres
as the username and password.
Migrations are done with Prisma, and follows a code-first approach.
- Make updates to the
prisma.schema
- Generate a migration with
prisma migrate dev
A Typesense container is also contained within the Docker compose file. You will need to create a search-only API key, used in the frontend.
See https://typesense.org/docs/0.25.2/api/api-keys.html#create-an-api-key
After generating the key, add it to your .env.local