/express-boilerplate

express-boilerplate

Primary LanguageJavaScript

Express Boilerplate with MongoDB

Github top language Github language count Repository size License

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author


🎯 About

Express boilerplate with mongodb database

✨ Features

✔️ Authentication system using JWT;
✔️ Guest user; ✔️ Database connection; ✔️ Test case;
✔️ Error handling; ✔️ Easy to use;

🚀 Technologies

The following tools were used in this project:

  • Express
  • Node.js
  • MongoDB

✅ Requirements

Before starting 🏁, you need to have Git and Node installed.

🏁 Starting

# Clone this project
$ git clone https://github.com/SakibHasanCse/express-boilerplate

# Access
$ cd express-boilerplate

# Install dependencies
$ yarn

# Run the project
$ yarn start

# The server will initialize in the <http://localhost:3000>

🏁 Project run using docker

# copy project intro docker and install dependence
$ docker build .

# Run the project
$ docker run image name

# stop the project
$ docker stop container id

# The server will initialize in the <http://localhost:5000>

🏁 Sample route

const filesRouter = express.Router()

filesRouter
  .route('/files')
  .post(isAuth, uploadNewFile)
  .get(isAuth, getListFiles)

Back to top