This project provides a starting point for building an application with Express and Mongoose, focusing on connecting a Node.js server to a MongoDB database using Mongoose as the Object Data Modeling (ODM) library.
- Express setup with route handling
- Mongoose integration with MongoDB for database operations
- Example schema and models for managing data
-
Clone the repository:
git clone https://github.com/Thinkful-Ed/starter-express-mongoose.git
-
Navigate to the project directory:
cd starter-express-mongoose
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file and include your MongoDB URI:MONGO_URI=<your-mongo-database-URI>
- Create a
-
Run the application:
npm start
This starter template provides the basic structure for building RESTful APIs. You can extend it by adding more routes, controllers, and Mongoose models.
- Express: Web framework for Node.js.
- Mongoose: ODM library for MongoDB.
- MongoDB: NoSQL database.