Skip to content

Boilerplate of fastify framework with MongoDB and REST API services

Notifications You must be signed in to change notification settings

dibinantonyjose/fastify-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify Boilerplate

Using rest API and MongoDB

Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture. Fastify Website

Installing

Clone project
git clone https://github.com/dibinjose/fastify-boilerplate.git
Install packages
cd fastify-mongo-boilerplate

nvm use

yarn
Start Server
yarn run dev
Swagger UI

localhost:3000/docs

Header

For authorized routes, authorization token needs to be passed as Authorization in header

Structure
.
├── env.sample
├── Insomnia.json
├── package.json
├── prettier.config.js
├── README.md
├── src
│   ├── app.js
│   ├── models
│   │   ├── sampleModel.js
│   │   └── userModel.js
│   ├── plugins
│   │   ├── apiReply.js
│   │   └── mongo.js
│   ├── schema
│   │   ├── sampleSchema.js
│   │   └── userSchema.js
│   ├── services
│   │   ├── auth.js
│   │   ├── public.js
│   │   └── user.js
│   └── utils
│       ├── replyGenerator.js
│       └── swagger.js
└── yarn.lock

About

Boilerplate of fastify framework with MongoDB and REST API services

Resources

Stars

Watchers

Forks