- You must have Docker installed on your machine.
- Edit
.env
file with your own configuration like this:
NGINX_PORT=4242
PUBLIC_API_URL=http://localhost:4242/api
PUBLIC_WEB_URL=localhost:4242
FRONTEND_PORT=3000
BACKEND_PORT=3000
FRONTEND_JWT_SECRET=some_random_secret
JWT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----
some
long
private
key
-----END PRIVATE KEY-----"
JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----
some
long
public
key
-----END PUBLIC KEY-----"
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
$ openssl genrsa -out private.pem 2048
$ openssl rsa -in private.pem -outform PEM -pubout -out public.pem
$ make
You can check the application running at http://localhost:4242
docker compose exec backend yarn prisma db seed
$ make test
$ make dev