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
- Host: GitHub
- URL: https://github.com/Tony133/fastify-api-boilerplate-jwt
- Owner: Tony133
- License: mit
- Created: 2019-09-17T15:34:18.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2026-04-16T13:02:54.000Z (about 2 months ago)
- Last Synced: 2026-04-16T13:29:48.642Z (about 2 months ago)
- Topics: api-rest, apirest, boilerplate, docker, fastify, javascript, js, kysely, node, nodejs, openapi, postgresql, rest-api, swagger, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 4.32 MB
- Stars: 586
- Watchers: 2
- Forks: 82
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)