Skip to content

Fastify App Boiler Plate with TypeScript , API versioning and Swagger Documentation

Notifications You must be signed in to change notification settings

raviroshanmehta/fastify-typescript-mongoose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N|Solid

Fastify App Boiler Plate with TypeScript , API versioning and Swagger Documentation

This app is generated via fastify-cli generator.

Features Working

  • Typescript
  • REST APIs versoning enabled - /api/v1 , api/v2
  • Admin Panel routing enabled - /admin
  • Swagger enabled for APIs docs.

To Do

  • Admin Login setup with user's CURD
  • Deployment Setup via PM2, Docker, Kubernetes
  • Unit Testing

Prerequisite

  • Redis connection
  • MongoDB connection
  • NodeJS v14+ version (App was tested on Node v14.16.1 during development, You may try another versions.)

Installation

Clone repo , install the dependencies and devDependencies and start the server.

git clone https://github.com/raviroshanmehta/fastify-typescript-mongoose
cd fastify-typescript-mongoose
npm i
cp .env.example .env
npm run dev

For production environments...

git clone https://github.com/raviroshanmehta/fastify-typescript-mongoose
cd fastify-typescript-mongoose
npm i
cp .env.example .env
npm start

If your app didn't started, You need to check error. Or create an issue if still you are stuck.

Link Link
Home Page http://127.0.0.1:5000
Seed Admin Record http://127.0.0.1:5000/api/seed
Admin http://127.0.0.1:5000/admin
API V1 http://127.0.0.1:5000/api/v1
API V2 http://127.0.0.1:5000/api/v2
APIs Root http://127.0.0.1:5000/api

License

MIT

Free Software, Hell Yeah!

About

Fastify App Boiler Plate with TypeScript , API versioning and Swagger Documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published