This a temp backend for Charkchalk by using Fastify + Prisma.
Copy the .env file and setup its content.
cp .env.example .env
pnpm install
docker-compose up -d && docker-compose logs -f
pnpm prisma migrate dev
pnpm prisma generate
To seed all tables, run the following command.
pnpm seed
Or you can seed a specific table by running the following command.
For detailed commands, please check the scripts
section in package.json
.
pnpm seed:<table_name>
pnpm dev