Skip to content

bangphe/typescript-fastify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify-Typescript

A TypeScript-based REST API boilerplate using Prisma and Fastify framework.

How to Use

1. Clone this Repo & Install Dependencies

First, clone the repository and install the Node.js dependencies:

npm install

2. Set Up the Database

This project uses a Postgres database. To set up your database, run the following migration command:

For development:

npm run migrate

For production:

npm run migrate:prod

3. Generate Prisma Client (Type-Safe Database Client)

Run the following command to generate the Prisma Client:

npm run db:gen

4. Start the Fastify Server

Launch your Fastify server with the following command:

npm run dev

Build Generation

To build the server, use the command:

npm run build

Documentation

About

Typescript fastify boilerplate with Prisma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors