This Project can be used to write a Simple RestAPI using express.js with an MongoDB Database.
- nested Resources
- Resource Validation
To create a new Resource with all the CRUD Operations, you have to create a new Entity in the Entity folder and a new route in the routes Folder. Then You need to add your new route to the server.ts file. And thats It!
Please have a look at my provided examples in the entity and routes folder, if you want to know how to structur your entity and routes.
The Key of this project was to build a Library which i can use for building RestAPIs with a MondoDB Backend in a very fast time.