About | Features | Technologies | Requirements | Starting | License | Author
Express boilerplate with mongodb database
✔️ Authentication system using JWT;
✔️ Guest user;
✔️ Database connection;
✔️ Test case;
✔️ Error handling;
✔️ Easy to use;
The following tools were used in this project:
- Express
- Node.js
- MongoDB
Before starting 🏁, you need to have Git and Node installed.
# 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>
# 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>
const filesRouter = express.Router()
filesRouter
.route('/files')
.post(isAuth, uploadNewFile)
.get(isAuth, getListFiles)