This project is a Node.js application that connects to a MongoDB database containing Airbnb listings and reviews. It provides various queries and aggregations to analyze the data using Mongoose.
- Connect to MongoDB and perform CRUD operations using Mongoose.
- Various aggregation queries to analyze Airbnb listings data.
- Sample queries to fetch listings based on different criteria.
- Node.js (>= 12.x)
- MongoDB database (you can use MongoDB Atlas or a local instance)
- Clone the repository:
git clone https://github.com/yourusername/airbnb-listings-analysis.git cd airbnb-listings-analysis
Install dependencies:
bash Copy code npm install Create a .env file in the root directory and add your MongoDB connection string:
env Copy code MONGODB_URI=your_mongodb_connection_string Usage Start the application:
bash Copy code npm start The application will connect to the MongoDB database and perform the defined queries. Check the console for the output of each query.
This README.md
provides an overview of the project, installation instructions, usag