Skip to content

Complete typescript template with fastify.js, prisma.

License

Notifications You must be signed in to change notification settings

luthfi-hh/fastify-typescript

 
 

Repository files navigation

Fastify-Typescript

typescript based rest-API architecture with prisma and fastify framework.

How to use

1. Clone this repo & install dependencies

Install Node dependencies:

npm install

2. Set up the database

This uses Postgres database.

To set up your database, run:

npm run prisma:save
npm run prisma:dep

3. Generate Prisma Client (type-safe database client)

Run the following command to generate Prisma Client:

npm run prisma:gen

4. Start the Fastify server

Launch your Fastify server with this command:

npm run dev

For Build Generation

Build server with command:

npm run build

Prisma documentation

About

Complete typescript template with fastify.js, prisma.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.5%
  • JavaScript 8.8%
  • Shell 2.4%
  • Dockerfile 1.3%