Skip to content

Latest commit

Β 

History

92 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Node.js, Express & MongoDB REST API 🌟

Welcome to my backend project repository! This project is a complete backend REST API built as part of my weekly development milestones. πŸ’»βœ¨

✨ Features & What's Inside:

  • 🌐 Express Server & Routing: Clean and structured RESTful endpoints (/api/tasks, /api/interns, etc.).
  • πŸ—„οΈ MongoDB & Mongoose: Persistent database storage ensuring data survives server restarts, complete with schemas, validation, and timestamps.
  • πŸ”„ Full CRUD Operations: Create, Read, Update, and Delete operations fully tested and working.
  • πŸ›‘οΈ Security & Protection: Secured using Helmet and CORS middleware.
  • ⚠️ Robust Error Handling: Input validation, try/catch blocks, 404 route handlers, and a global error catcher.
  • πŸ“¬ Postman Collection: Fully documented and exported API collection.

πŸ› οΈ Tech Stack:

  • 🟒 Node.js
  • πŸš‚ Express.js
  • πŸƒ MongoDB & Mongoose
  • πŸ”’ Helmet & CORS
  • πŸ“¦ Dotenv
  • πŸš‚ Nodemon

πŸ“‚ Folder Structure

Generated: 9/18/2026, 7:38:16 PM Root Path: workspace\Learning_Node

β”œβ”€β”€ πŸ“ Server
β”‚   β”œβ”€β”€ πŸ“ Postman
β”‚   β”‚   └── πŸ“„ Postman_Testing
β”‚   β”œβ”€β”€ πŸ“ models
β”‚   β”‚   └── πŸ“„ TaskModel.js
β”‚   β”œβ”€β”€ πŸ“„ index.js
β”‚   β”œβ”€β”€ πŸ“„ output.txt
β”‚   β”œβ”€β”€ βš™οΈ package-lock.json
β”‚   β”œβ”€β”€ βš™οΈ package.json
β”‚   └── πŸ“„ server.js
β”œβ”€β”€ βš™οΈ .gitignore
└── πŸ“ README.md

πŸš€ Getting Started Locally:

  1. Clone Repository
   git clone <repo-url>

Install dependencies:

npm install
npm i helmet dotenv express mongoose cors nodemon

Create a .env file and provide your connection string:

MONGODB_URI=your_mongodb_connection_string
PORT=port

Start the server:

npm run dev

πŸ‘€ Author

MehmoodCoder


πŸ“„ License

This project is open source and available under the MIT License.


🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Happy coding without chai ! β˜•

About

πŸš€ Full-Stack REST API built with Node.js, Express.js, & MongoDB Atlas. Features complete CRUD operations, security middleware, input validation, & error handling! πŸ’»πŸ”₯

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Contributors

Languages