1. Products

MongoDB REST API Using NodeJS TypeScript

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.

https://github.com/gyanverma2/MongoDB-NodeJS-REST-API-TypeScript-JWT
Comments to: MongoDB REST API Using NodeJS TypeScript

Your email address will not be published. Required fields are marked *

Nishant Kumar Verma

Full Stack Developer, Experience in enterprise application development. Providing solution for scalable SaaS application and developing product to automate part of development efforts.

#CleanCodeArchitect #.Net #C# #NodeJS #TypeScript #React #JavaScript #DesignPattern #SOLID #WebAPI #HTML5 #Bootstrap #CSS

#AWS #Docker #Kubernetes #GIT #GitHubAction #ECS #LoadBalancer #S3 #Lambda #Azure #CI/CD Pipeline

#MongoDB #MSSQL #MySQL #JSON