Description

NestJS + MongoDB REST-api example. Includes some validation, data transformation and custom exceptions.
Installed MongoDB required

There are two entities - user and group.

You can add user to another as a friend and also follow groups.
There are also many crud methods to use.
If you choose to delete/edit user or group - all they relations with friends/groups will update accordingly.

Installation

$ npm install
#or
$ yarn

Running the app

$ npm run start
#or
$ yarn run start

Api

# HOST browse using Postman / Insomnia or other
http://localhost:3000/