Run with docker compose:
- Run
docker compose up
- When postgres service is stable go inside server set
.env
to:
DATABASE_URL="postgres://postgres:password@localhost:5432/mydatabase"
DATABASE_URL_NON_POOLING="postgres://postgres:password@localhost:5432/mydatabase"
- Run
npx prisma:push
andnpm run prisma:seed
- Ready. Go to
localhost:3000
How to run the server:
- Replace
.env.example
for.env
and fill up values. npm install
by default will generate prisma client through postinstall- If running local db instance you may want to do
npx prisma db push
for quick testing npm run start
ornpm run start:dev
Run server tests:
- Run
npm run test
inside server
How to run the client:
- Replace
.env.local.example
for.env.local
and fill up values. npm install
to setup dependencies followed bynpm run start
- Ready. Go to
localhost:3000
Some notes:
- Left controllers tests as todo, just for time reason. I can try to push some as examples. We can also do some dto, repo and e2e testing.
Demo video in ./demo.mp4
Deployment at: https://wakeup-client.vercel.app/