bicho19 / fastify-typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Fastify Typescript

Fastify Rest API Boilerplate Using TypeScript



How to use

1. Clone this repo & install dependencies

Install Node dependencies:

npm install

2. Create env files

Create the env files for dev, test and prod, refer env.example

.env.development.local
.env.test.local
.env.production.local

2. Set up the database

The boilerplate uses Postgres database.

and update the db credentials in the env file

5. Start the server

Launch your server with this command:

npm run dev

Swagger Endpoint:

http://localhost:3001/api-docs

About


Languages

Language:TypeScript 98.4%Language:Dockerfile 1.6%