A RESTful API for an e-commerce platform that provides multiple endpoints to manage authentication, users, cart, wishlist, addresses, products, categories, brands, coupons, orders, and reviews.
Features include authentication via JSON Web Tokens, Cron jobs, payment gateway integration, filtering, sorting, pagination, image upload, logging, email and phone verification.
Consists of 8 database schemas and 70+ routes and controllers. APIs are documented using Swagger Docs.
API and Cron jobs are deployed on a DigitalOcean Droplet using Nginx as a web server.
Configured PM2 to keep API and Cron jobs running as daemon processes to ensure availability.
Utilized the cluster module to evenly distribute incoming requests across all CPU cores in the server.
Tech stack - Express.js, MongoDB, Mongoose, Joi, Cloudinary, Razorpay API, Swagger Docs, Nginx, PM2
Built with