NestJS + MongoDB REST-api example.
Includes some validation, data transformation and custom exceptions.
Installed MongoDB required
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.
$ npm install
#or
$ yarn
$ npm run start
#or
$ yarn run start
# HOST browse using Postman / Insomnia or other
http://localhost:3000/