Skip to content

charkchalk/temp-backend

Repository files navigation

Charkchalk Temp Backend

This a temp backend for Charkchalk by using Fastify + Prisma.

Getting started

1. Setup environment variables

Copy the .env file and setup its content.

cp .env.example .env

2. Install dependencies

pnpm install

3. Host up database

docker-compose up -d && docker-compose logs -f

4. Setup database

pnpm prisma migrate dev

5. Generate database type definitions of Prisma Client

pnpm prisma generate

(Optional) Seed database

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>

6. Start server

pnpm dev

About

A temp api for Charkchalk in Fastify + Prisma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages