Skip to content

An API Boilerplate to create a ready-to-use REST API in seconds with Fastify + Kysely and JWT Authentication

License

Notifications You must be signed in to change notification settings

Tony133/fastify-api-boilerplate-jwt

Repository files navigation

FastifyApiBoilerplateJWT

An API Boilerplate to create a ready-to-use REST API in seconds with Fastify + Kysely and JWT Authentication

Installation

npm install

Set Environment for secret key JWT and other configurations

cp .env.example .env

In the project directory, you can run:

npm run dev

or

npm run dev:watch

To start the app in dev mode. Open http://localhost:3000 to view it in the browser.

npm start

For production mode

Test

npm run test

Run the test cases

Docker

There is a docker-compose.yml file for starting PostgreSQL with Docker.

docker compose up db

After running, you can stop the Docker container with

docker compose down

Url Swagger for Api Documentation

http://127.0.0.1:3000/docs

License

MIT licensed

About

An API Boilerplate to create a ready-to-use REST API in seconds with Fastify + Kysely and JWT Authentication

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5

Languages