Skip to content

🚀 A minimalistic boilerplate for web API made with expressJS, mongoose and typescript.

License

Notifications You must be signed in to change notification settings

znixbtw/expess-mongoose-boilerplate

Repository files navigation

Express Mongoose Typescript Boilerplate

🚀 Minimalistic ExpressJS and Mongo API boilerplate written in Typescript to start building RESTful APIs quickly.


Environment Variables

Create a .env file in the root of the project.

# Specify environment [development | staging | production]
NODE_ENV=
PORT=

# MongoDB
MONGO_URI=

# JWT
TOKEN_SECRET=

Project Structure

src\
 |--config\             # Environment variables and configuration related things
 |--utils\              # Utility classes and functions
 |--middlewares\        # Custom express middlewares
 |--API\v1\{endpoint}
   |--controller\       # Route controllers (controller layer)
   |--routes\           # Routes
   |--service\          # Business logic (service layer)
   |--validator\        # Request data validation schemas
 |--app.js              # Express app
 |--index.js            # App entry point

Features

About

🚀 A minimalistic boilerplate for web API made with expressJS, mongoose and typescript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published