Welcome to the Node.js Express & Mongoose Setup template! This template provides a default setup for building backend APIs with Node.js using Express and Mongoose.
- Express Server: Set up a basic Express server to handle API requests.
- Mongoose Integration: Connect to MongoDB database using Mongoose for easy data modeling and interaction.
- Basic Routes: Implement basic CRUD routes for handling API requests.
- Middleware Support: Includes middleware setup for request logging, error handling, etc.
- Clone the repository:
git clone https://github.com/wassimOubaziz/default-nodejs-setup.git
- Install dependencies:
npm install
- Configure MongoDB URI in
.env
file. - Start the server:
npm start
index.js
: Entry point of the application.routes/
: Contains route handlers for different endpoints.models/
: Contains Mongoose models for data schema.controllers/
: Contains controller functions to handle business logic.
Contributions are welcome! If you have suggestions for improvements, feel free to open an issue or submit a pull request.
Share your thoughts about the Node.js Express & Mongoose Setup template. If you encounter any issues or have ideas for enhancements, connect with me on LinkedIn or open an issue.
Happy coding! 🚀
Made by Wassim Oubaziz