Skip to content

charkchalk/temp-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71fb698 · Nov 19, 2023

History

35 Commits
May 20, 2023
May 20, 2023
May 31, 2023
Nov 19, 2023
Nov 19, 2023
May 23, 2023
May 20, 2023
May 20, 2023
May 20, 2023
May 20, 2023
May 21, 2023
May 20, 2023
Nov 19, 2023
Nov 19, 2023
May 25, 2023
May 23, 2023
May 20, 2023

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