Skip to content

rest server CRUD users using node, express, mongodb, express-validator, bcryptjs and jwt

Notifications You must be signed in to change notification settings

alanalmonasi/template-basic-rest-server

Repository files navigation

REST SERVER

This README file is valid for v2.1.0, you can check it out in the available tags

CRUD users

This is a basic configuration of a rest server where you can create, read, update and delete users from a mongodb

Use npm install or npm i to install all the dependencies

Use npm run dev to run the server in development mode

To connect to a database you need to rename the file .env.template to .env and replace the value of the MONGODB_URI with a conncection string that looks like:

mongodb+srv://<username>:<password>@beyondthebasics.abcde.mongodb.net/test

To know more about this yo can visit MongoDB Connection String the info you need is the section How to get your MongoDB Atlas connection string