- Clone repository.
- Install dependecies:
npm install - Create a copy of
env.templateand rename it to.envand add the env variables. For AUTH_SECRET runnpx auth secret. Read more: https://cli.authjs.dev - Start docker image:
docker compose up -d - Run primsa migrations
npx prisma migrate dev - Excecute seed
npm run seed- To do this we had to install ts-node and create a tsconfig with tsc --init in the same folder as the seed (something to note is that tha alias @ can't be used in this file because if we're excecuting it with ts-node alone and it's not part of the bundle) - Run proyect:
npm run dev - Limpiar el LocalStorage del navegador
- Replace database env variable with the production one.
- Run
npx prisma migrate deployto create the database or change the schema. - First time one could run
npm run seedbut be careful to not run it again in production because data would be wiped out.