Mongodb is one the most popular NoSQL database. And with access to MongoDB atlas for free it become very easy to get started with mongoDB NoSQL database are most used in the case where your table structure is not fixed and you want to have the data stored as one individual entity.
e.g if you want to store the transaction details of any payment there could be different result returned from PayPal payment gateway than Strip payment gateway, And in both the case if you want to store the data irrespective of the payment gateway in your single table in that case mongoDB comes as a savior. It can save any type of structure as a document in the collection and later your frontend can use that information to display in different format based on the JSON stored.
To make the development easy I have created a tool which take your mongodb database as input and generate a full working production ready REST API in NodeJS with TypeScript for schema restrictions.
The complete list of technology used in this project is:
- NodeJS
- TypeScript
- Mongodb Mongoose
- Mongodb Atlas
- Express
- hapi__joi for Validation
- dotenv – for env file management
- express-fileupload – for file upload
- chai, supertest – For Unit testing
- Postman , Swagger – API documentation
- helmet, cros for securting
- tslint, nodemon for development
You can download the tool from this link : Download & browse the Git repository for code.
No Comments
Leave a comment Cancel