Backend API with Mongoose

This project is a backend application built with Node.js and Mongoose. The application manages three main collections:

  • User: Handles user information.
  • Post: Contains the posts created by users.
  • Comments: Stores the comments made on posts.

Features

  • User: Create, read, update, and delete users.
  • Post: Full CRUD management for posts.
  • Comments: Add and manage comments on posts.

Requirements

  • Node.js
  • MongoDB

Installation

  1. Clone this repository.
  2. Run npm install to install dependencies.
  3. Configure your MongoDB connection in the .env file.
  4. Start the server with npm start.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PORT

MONGO_URI

JWT_SECRET

MONGO_USER

MONGO_PASSWORD

MONGO_DATABASE

Appendix

This project is deployed on Render with Docker

Demo

https://mongodb-social-media.onrender.com/post/getAll

Authors

🚀 About Me

I'm a full stack developer passionate about building robust backend solutions. My expertise lies in creating scalable applications using Express.js and MongoDB with Mongoose, as demonstrated in projects like this one. I enjoy tackling challenges and implementing efficient solutions that enhance user experiences.

🔗 Links

portfolio linkedin