Skip to content

hmake98/fastify-typescript

Repository files navigation

Fastify-Typescript

Typescript based rest-API boilerplate 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 migrate

for production

npm run migrate:prod

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

Run the following command to generate Prisma Client:

npm run db: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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy