An open API service indexing awesome lists of open source software.

https://github.com/Tony133/fastify-api-boilerplate-jwt

An API Boilerplate to create a ready-to-use REST API in seconds with Fastify + Kysely and JWT Authentication
https://github.com/Tony133/fastify-api-boilerplate-jwt

api-rest apirest boilerplate docker fastify javascript js kysely node nodejs openapi postgresql rest-api swagger ts typescript

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          




# FastifyApiBoilerplateJWT

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

## Installation

```sh
npm install
```

Set Environment for secret key JWT and other configurations

```sh
cp .env.example .env
```

In the project directory, you can run:

```sh
npm run dev
```

or

```sh
npm run dev:watch
```

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

```sh
npm start
```

For production mode

## Test

```sh
npm run test
```

Run the test cases

## Docker

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

```sh
docker compose up db
```

After running, you can stop the Docker container with

```sh
docker compose down
```

## Url Swagger for Api Documentation

```text
http://127.0.0.1:3000/docs
```

## License

[MIT licensed](LICENSE)