diff --git a/Code-with-Google-Maps b/Code-with-Google-Maps new file mode 160000 index 00000000..c12d72c8 --- /dev/null +++ b/Code-with-Google-Maps @@ -0,0 +1 @@ +Subproject commit c12d72c84c1439945d61b80ebd5c8a8f0d92bb54 diff --git a/README.md b/README.md index 877fb545..c84be8df 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,158 @@ -# Code-with-Google-Maps-2023 - Hack2skill +**Team Information:** -Welcome to the official repository for the Code-with-Google-Maps-2023 organized by Hack2skill! +- Team Name: Team CodeForMap +- Problem Statement: Developed an app for users to buy houses, rooms, or rent PG accommodations. +- Team Leader Email: ankushkothiyal2012@gmail.com -## Getting Started +**Repository Links:** +- Please find the houseapp-frontend repository here: +- [houseapp-frontend GitHub Repository](https://github.com/01ankush/houseapp-frontend) +- Prototype Presentation link : +- [drive link](https://drive.google.com/drive/folders/1Z8LC8B9MlcAvfmvJ5qZrg_X4wMhVVcRs?usp=sharing) + +**Project Overview:** -To get started with the Code-with-Google-Maps-2023 repository, follow these steps: +HouseForYou is an innovative rental platform that simplifies the housing search process, prioritizing user-centric features and advanced technologies. The app enables users to effortlessly upload property details, encompassing everything from individual rooms to PG accommodations. -### Submission Instruction: - 1. Fork this repository - 2. Create a folder with your Team Name - 3. Upload all the code and necessary files in the created folder - 4. Upload a **README.md** file in your folder with the below mentioned informations. - 5. Generate a Pull Request with your Team Name. (Example: submission-XYZ_team) +**Tech Stack:** -### README.md must consist of the following information: +- **AI Assistant:** + - Natural Language Processing (NLP) with OpenAI key (text-davinci-003) + - Programming Language: Python (used for integrating NLP models) -#### Team Name - -#### Problem Statement - -#### Team Leader Email - +- **Maps Integration:** + - Google Maps API, including Google Maps Directions API, Google Maps Geocoding API, Google Maps JavaScript API, and Google Maps Places API -### A Brief of the Prototype: - This section must include UML Diagrams and prototype description - -### Tech Stack: - List Down all technologies used to Build the prototype - -### Step-by-Step Code Execution Instructions: - This Section must contain a set of instructions required to clone and run the prototype so that it can be tested and deeply analyzed +- **App Development:** + - Ionic-angular + +- **Backend Development:** + - Framework: Node.js with Express.js + - Database: MongoDB + +**Step-by-Step Code Execution Instructions for houseapp-frontend:** + +1. **Navigate to the Frontend Folder:** + - Open your terminal and change the directory to "houseapp-frontend" using the following command: + ```shell + cd houseapp-frontend + ``` + +2. **Run Ionic Development Server:** + - Start the development server by executing the command: + ```shell + ionic serve + ``` + - This command will host your app on a local server, accessible through your web browser. -### Future Scope: - Write about the scalability and futuristic aspects of the prototype developed +3. **Inspect Your App in the Browser:** + - Open your web browser and navigate to the local host URL where your app is running, usually at `http://localhost:8100/`. + - Right-click on your app and choose "Inspect" to access developer tools for viewing and analyzing the app's interface. + +**Running Your App within an Android Emulator:** + +Before testing on an Android emulator, ensure the Android SDK, Java, and emulator are properly configured. + +1. **Build Your App:** + - Use the following command to build your Ionic app: + ```shell + ionic build + ``` + +2. **Copy the Web Assets:** + - Copy your web assets to the native Android project folder with this command: + ```shell + npx cap copy + ``` + +3. **Open the Android Project:** + - Launch Android Studio by executing: + ```shell + npx cap open android + ``` + - This command opens the project files in Android Studio. + +4. **Run Your App:** + - In Android Studio, click the "Run" button to launch your app within the Android emulator. + +By following these steps, you can effectively test and debug your application within the Android emulator. + +**Instructions for Running the houseapp-backend:** +- Ensure that you have created a MongoDB connection string for your MongoDB cluster and added it to the .env file. + +1. **Navigate to the Backend Directory:** + - Open your terminal and change the current directory to the "houseapp-backend" folder using the following command: + ```shell + cd houseapp-backend + ``` + +2. **Install Required Dependencies:** + - Install the "dotenv" package by running this command: + ```shell + npm install dotenv + ``` + +3. **Start the Backend Server:** + - Initiate the backend server by executing the following command: + ```shell + node index + ``` + - If you see the message "Connected to Db," it means the server is running successfully. + +4. **Access the Application:** + - Access the application on your local machine by opening a web browser and navigating to the URL, usually `http://localhost:YOUR_PORT`. + - Replace `YOUR_PORT` with the specific port number configured in your backend settings. + +These instructions will help you run the houseapp-backend, enabling you to access the application locally. + +**----Code Execution Instructions for houseopenAi----** + +**Instructions for Generating a Free OpenAI API Key:** + +1. **Create an OpenAI Account:** + - Begin by visiting the OpenAI website (https://www.openai.com) and creating a new account if you haven't already. + +2. **Access Your Dashboard:** + - After creating your account, log in to the OpenAI platform and access your user dashboard. + +3. **Generate an API Key:** + - In your OpenAI dashboard, navigate to the API or Developer section. Look for the option to generate an API key. + +4. **Create a New API Key:** + - Follow the provided instructions to create a new API key. You may need to specify the type of access you require (e.g., GPT-3, DALL-E) and any usage restrictions. + +5. **Copy the API Key:** + - Once your API key is generated, copy it to your clipboard. + +6. **Configure the API Key in Your Project:** + - Open the `config.py` file in your project and paste the API key you copied in the previous step. + +7. **Save the `config.py` File:** + - After pasting the API key, save the `config.py` file to ensure that your project can access the OpenAI API. + +By following these steps, you will generate a free OpenAI API key and configure it in your project's `config.py` file, allowing you to make API requests to OpenAI services. +1. **Navigate to the OpenAI Folder:** + - Open your preferred code editor (e.g., VS Code, PyCharm) and access the "houseopenAi" folder. + +2. **Run the Python Script:** + - Open the "main.py" file. + - Execute the Python script by clicking the "Run" icon in your code editor. + +3. **Interact with the Loco:** + - Interact with the Loco by speaking specific commands, such as: + 1. "What is the distance between any location to any location." + 2. Asking general questions. + 3. Using specific commands like: + - "Can you find a one-person room in Delhi?" + - "Can you help in finding a two-person room in Meerut?" + 4. To stop the app, say "Stop Loco!" + +By following these steps, you can run and interact with your applications for houseapp-frontend, houseapp-backend, and houseopenAi projects. + +**Future Scope:** + +In the future, the project aims to add additional features, including: +- Providing an inside view of houses using Augmented Reality (AR). +- Offering the app in various languages to cater to a broader audience. +- Enabling users to make monthly payments directly to property owners through the app. +- Implementing a messaging system for direct communication between users and property owners. diff --git a/Team-CodeForMap/README.md b/Team-CodeForMap/README.md new file mode 100644 index 00000000..c84be8df --- /dev/null +++ b/Team-CodeForMap/README.md @@ -0,0 +1,158 @@ +**Team Information:** + +- Team Name: Team CodeForMap +- Problem Statement: Developed an app for users to buy houses, rooms, or rent PG accommodations. +- Team Leader Email: ankushkothiyal2012@gmail.com + +**Repository Links:** +- Please find the houseapp-frontend repository here: +- [houseapp-frontend GitHub Repository](https://github.com/01ankush/houseapp-frontend) +- Prototype Presentation link : +- [drive link](https://drive.google.com/drive/folders/1Z8LC8B9MlcAvfmvJ5qZrg_X4wMhVVcRs?usp=sharing) + +**Project Overview:** + +HouseForYou is an innovative rental platform that simplifies the housing search process, prioritizing user-centric features and advanced technologies. The app enables users to effortlessly upload property details, encompassing everything from individual rooms to PG accommodations. + +**Tech Stack:** + +- **AI Assistant:** + - Natural Language Processing (NLP) with OpenAI key (text-davinci-003) + - Programming Language: Python (used for integrating NLP models) + +- **Maps Integration:** + - Google Maps API, including Google Maps Directions API, Google Maps Geocoding API, Google Maps JavaScript API, and Google Maps Places API + +- **App Development:** + - Ionic-angular + +- **Backend Development:** + - Framework: Node.js with Express.js + - Database: MongoDB + +**Step-by-Step Code Execution Instructions for houseapp-frontend:** + +1. **Navigate to the Frontend Folder:** + - Open your terminal and change the directory to "houseapp-frontend" using the following command: + ```shell + cd houseapp-frontend + ``` + +2. **Run Ionic Development Server:** + - Start the development server by executing the command: + ```shell + ionic serve + ``` + - This command will host your app on a local server, accessible through your web browser. + +3. **Inspect Your App in the Browser:** + - Open your web browser and navigate to the local host URL where your app is running, usually at `http://localhost:8100/`. + - Right-click on your app and choose "Inspect" to access developer tools for viewing and analyzing the app's interface. + +**Running Your App within an Android Emulator:** + +Before testing on an Android emulator, ensure the Android SDK, Java, and emulator are properly configured. + +1. **Build Your App:** + - Use the following command to build your Ionic app: + ```shell + ionic build + ``` + +2. **Copy the Web Assets:** + - Copy your web assets to the native Android project folder with this command: + ```shell + npx cap copy + ``` + +3. **Open the Android Project:** + - Launch Android Studio by executing: + ```shell + npx cap open android + ``` + - This command opens the project files in Android Studio. + +4. **Run Your App:** + - In Android Studio, click the "Run" button to launch your app within the Android emulator. + +By following these steps, you can effectively test and debug your application within the Android emulator. + +**Instructions for Running the houseapp-backend:** +- Ensure that you have created a MongoDB connection string for your MongoDB cluster and added it to the .env file. + +1. **Navigate to the Backend Directory:** + - Open your terminal and change the current directory to the "houseapp-backend" folder using the following command: + ```shell + cd houseapp-backend + ``` + +2. **Install Required Dependencies:** + - Install the "dotenv" package by running this command: + ```shell + npm install dotenv + ``` + +3. **Start the Backend Server:** + - Initiate the backend server by executing the following command: + ```shell + node index + ``` + - If you see the message "Connected to Db," it means the server is running successfully. + +4. **Access the Application:** + - Access the application on your local machine by opening a web browser and navigating to the URL, usually `http://localhost:YOUR_PORT`. + - Replace `YOUR_PORT` with the specific port number configured in your backend settings. + +These instructions will help you run the houseapp-backend, enabling you to access the application locally. + +**----Code Execution Instructions for houseopenAi----** + +**Instructions for Generating a Free OpenAI API Key:** + +1. **Create an OpenAI Account:** + - Begin by visiting the OpenAI website (https://www.openai.com) and creating a new account if you haven't already. + +2. **Access Your Dashboard:** + - After creating your account, log in to the OpenAI platform and access your user dashboard. + +3. **Generate an API Key:** + - In your OpenAI dashboard, navigate to the API or Developer section. Look for the option to generate an API key. + +4. **Create a New API Key:** + - Follow the provided instructions to create a new API key. You may need to specify the type of access you require (e.g., GPT-3, DALL-E) and any usage restrictions. + +5. **Copy the API Key:** + - Once your API key is generated, copy it to your clipboard. + +6. **Configure the API Key in Your Project:** + - Open the `config.py` file in your project and paste the API key you copied in the previous step. + +7. **Save the `config.py` File:** + - After pasting the API key, save the `config.py` file to ensure that your project can access the OpenAI API. + +By following these steps, you will generate a free OpenAI API key and configure it in your project's `config.py` file, allowing you to make API requests to OpenAI services. +1. **Navigate to the OpenAI Folder:** + - Open your preferred code editor (e.g., VS Code, PyCharm) and access the "houseopenAi" folder. + +2. **Run the Python Script:** + - Open the "main.py" file. + - Execute the Python script by clicking the "Run" icon in your code editor. + +3. **Interact with the Loco:** + - Interact with the Loco by speaking specific commands, such as: + 1. "What is the distance between any location to any location." + 2. Asking general questions. + 3. Using specific commands like: + - "Can you find a one-person room in Delhi?" + - "Can you help in finding a two-person room in Meerut?" + 4. To stop the app, say "Stop Loco!" + +By following these steps, you can run and interact with your applications for houseapp-frontend, houseapp-backend, and houseopenAi projects. + +**Future Scope:** + +In the future, the project aims to add additional features, including: +- Providing an inside view of houses using Augmented Reality (AR). +- Offering the app in various languages to cater to a broader audience. +- Enabling users to make monthly payments directly to property owners through the app. +- Implementing a messaging system for direct communication between users and property owners. diff --git a/Team-CodeForMap/houseapp-backend/.env b/Team-CodeForMap/houseapp-backend/.env new file mode 100644 index 00000000..feada9cb --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/.env @@ -0,0 +1,2 @@ +// replace username and password with yours +const MONGODB_URI = "mongodb+srv://:@cluster0.agvnxsg.mongodb.net/"; diff --git a/Team-CodeForMap/houseapp-backend/api/houseapp-backend/api/userRoutes.js b/Team-CodeForMap/houseapp-backend/api/houseapp-backend/api/userRoutes.js new file mode 100644 index 00000000..81ba3341 --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/api/houseapp-backend/api/userRoutes.js @@ -0,0 +1,115 @@ +const e = require('express'); +const User = require('../models/user'); +const Room = require('../models/room'); + + +// userRoutes.js +const express = require('express'); +const router = express.Router(); + +// // Define your user-related routes +// router.get('/',(req,res)=>{ +// User.find().then(users =>{ +// res.status(200).json(users); +// }).catch(err =>{ +// res.status(500).json({error: err.message}) +// }) +// }) + +router.post('/register',async (req,res)=>{ + // console.log("test",await userExists(req.body.email)) + if(await userExists(req.body.email)){ + res.status(409).json({error:'Email already exists'}) + }else{ + const newUser = new User(req.body) + newUser.save().then(user=>{ + res.status(201).json(user) + }).catch(err=>{ + res.status(500).json({error: err.message}) + }) + } + +}) + +// login +router.post('/login', (req, res) => { + User.findOne({email:req.body.email, password: req.body.password}).then(user =>{ + if(user){ + res.status(200).json(user) + }else{ + res.status(401).json({error: "Incorrect email or password"}) + } + }).catch(err=>{ + res.status(500).json({error:err.message}) + }) +}); + +// function for check user existance +const userExists = async (email)=>{ + const user = await User.findOne({email : email.toLowerCase().trim()}) + if(user){ + return true + }else{ + return false + } +} + +// Create a new room +router.post('/rooms', async (req, res) => { + try { + const room = new Room(req.body); + await room.save(); + res.status(201).json(room); + } catch (error) { + res.status(400).json({ error: error.message }); + } + }); + + // Get a list of all rooms +router.get('/', async (req, res) => { + try { + const rooms = await Room.find(); + res.json(rooms); + } catch (error) { + res.status(500).json({ error: error.message }); + } + }); + + router.get('/rooms', async (req, res) => { + try { + const rooms = await Room.find(); + res.json(rooms); + } catch (error) { + res.status(500).json({ error: error.message }); + } + }); + + // Get a room by ID +router.get('/rooms/:id', async (req, res) => { + try { + const roomId = req.params.id; + const room = await Room.findById(roomId); + + if (!room) { + return res.status(404).json({ error: 'Room not found' }); + } + + res.json(room); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.post('/voice', (req, res) => { + const voiceInput = req.body.input; + + // Process voice input and generate a response (e.g., search the database). + const response = 'Hello, how can I assist you today?'; + + res.json({ response }); +}); + + +// Add more routes as needed + +module.exports = router; diff --git a/Team-CodeForMap/houseapp-backend/api/roomRoutes.js b/Team-CodeForMap/houseapp-backend/api/roomRoutes.js new file mode 100644 index 00000000..5e255176 --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/api/roomRoutes.js @@ -0,0 +1,28 @@ +const express = require('express'); +const router = express.Router(); +const Room = require('../models/room'); + +// Create a new room +router.post('/rooms', async (req, res) => { + try { + const room = new Room(req.body); + await room.save(); + res.status(201).json(room); + } catch (error) { + res.status(400).json({ error: error.message }); + } +}); + +// Get a list of all rooms +router.get('/', async (req, res) => { + try { + const rooms = await Room.find(); + res.json(rooms); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +// Implement additional routes for updating and deleting rooms + +module.exports = router; diff --git a/Team-CodeForMap/houseapp-backend/api/userRoutes.js b/Team-CodeForMap/houseapp-backend/api/userRoutes.js new file mode 100644 index 00000000..81ba3341 --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/api/userRoutes.js @@ -0,0 +1,115 @@ +const e = require('express'); +const User = require('../models/user'); +const Room = require('../models/room'); + + +// userRoutes.js +const express = require('express'); +const router = express.Router(); + +// // Define your user-related routes +// router.get('/',(req,res)=>{ +// User.find().then(users =>{ +// res.status(200).json(users); +// }).catch(err =>{ +// res.status(500).json({error: err.message}) +// }) +// }) + +router.post('/register',async (req,res)=>{ + // console.log("test",await userExists(req.body.email)) + if(await userExists(req.body.email)){ + res.status(409).json({error:'Email already exists'}) + }else{ + const newUser = new User(req.body) + newUser.save().then(user=>{ + res.status(201).json(user) + }).catch(err=>{ + res.status(500).json({error: err.message}) + }) + } + +}) + +// login +router.post('/login', (req, res) => { + User.findOne({email:req.body.email, password: req.body.password}).then(user =>{ + if(user){ + res.status(200).json(user) + }else{ + res.status(401).json({error: "Incorrect email or password"}) + } + }).catch(err=>{ + res.status(500).json({error:err.message}) + }) +}); + +// function for check user existance +const userExists = async (email)=>{ + const user = await User.findOne({email : email.toLowerCase().trim()}) + if(user){ + return true + }else{ + return false + } +} + +// Create a new room +router.post('/rooms', async (req, res) => { + try { + const room = new Room(req.body); + await room.save(); + res.status(201).json(room); + } catch (error) { + res.status(400).json({ error: error.message }); + } + }); + + // Get a list of all rooms +router.get('/', async (req, res) => { + try { + const rooms = await Room.find(); + res.json(rooms); + } catch (error) { + res.status(500).json({ error: error.message }); + } + }); + + router.get('/rooms', async (req, res) => { + try { + const rooms = await Room.find(); + res.json(rooms); + } catch (error) { + res.status(500).json({ error: error.message }); + } + }); + + // Get a room by ID +router.get('/rooms/:id', async (req, res) => { + try { + const roomId = req.params.id; + const room = await Room.findById(roomId); + + if (!room) { + return res.status(404).json({ error: 'Room not found' }); + } + + res.json(room); + } catch (error) { + res.status(500).json({ error: error.message }); + } +}); + +router.post('/voice', (req, res) => { + const voiceInput = req.body.input; + + // Process voice input and generate a response (e.g., search the database). + const response = 'Hello, how can I assist you today?'; + + res.json({ response }); +}); + + +// Add more routes as needed + +module.exports = router; diff --git a/Team-CodeForMap/houseapp-backend/index.js b/Team-CodeForMap/houseapp-backend/index.js new file mode 100644 index 00000000..b922ffbd --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/index.js @@ -0,0 +1,35 @@ +require('dotenv').config() +const express = require('express'); +const mongoose = require('mongoose'); +const cors = require('cors'); +const port = process.env.PORT || 3000; + +// Routes +const userRoutes = require('./api/userRoutes'); + +const app = express(); + +app.use(cors()); +app.use(express.json()); + +app.get('/', (req, res) => { + res.send('Hello, world'); +}); + +// Use the userRoutes as middlewar +app.use('/users', userRoutes); +const uri = "mongodb+srv://ankushkothiyal2012:kcGkZMFdKuOeq0OT@cluster0.agvnxsg.mongodb.net/?retryWrites=true&w=majority" + +async function connect(){ + try{ + await mongoose.connect(uri); + console.log("Connected to DB"); + + }catch(error){ + console.error(error); + } +} +connect(); +app.listen(port, () => { + console.log('App running'); + }); diff --git a/Team-CodeForMap/houseapp-backend/models/room.js b/Team-CodeForMap/houseapp-backend/models/room.js new file mode 100644 index 00000000..6a3d6129 --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/models/room.js @@ -0,0 +1,74 @@ +const mongoose = require('mongoose'); + +const roomSchema = new mongoose.Schema({ + location: { + type: String, + required: true, + }, + frontImage: { + type: String, + required: true, + }, + video: { + type: String, + required: true, + }, + isResidential: { + type: Boolean, + required: false, + }, + isCommercial: { + type: Boolean, + required: false, + }, + price: { + type: Number, + required: true, + }, + numRoomsForRent: { + type: Number, + required: true, + }, + isHouse: { + type: Boolean, + required: false, + }, + isRoom: { + type: Boolean, + required: false, + }, + isPG: { + type: Boolean, + required: false, + }, + contactDetails: { + isOwner: { + type: Boolean, + required: false, + }, + isBroker: { + type: Boolean, + required: false, + }, + }, + phone: { + type: Number, + required: false, + }, + roomDetails: { + bedrooms: { + type: Number, + required: false, + }, + bathrooms: { + type: Number, + required: false, + }, + balconies: { + type: Number, + required: false, + }, + }, +}); + +module.exports = mongoose.model('Room', roomSchema); diff --git a/Team-CodeForMap/houseapp-backend/models/user.js b/Team-CodeForMap/houseapp-backend/models/user.js new file mode 100644 index 00000000..152e454a --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/models/user.js @@ -0,0 +1,73 @@ +const mongoose = require("mongoose"); +// const bcrypt = require("bcrypt"); +// const jwt = require("jsonwebtoken"); + +const userSchema = new mongoose.Schema({ + email: { + type: String, + required: true, + }, + firstName: { + type: String, + required: true, + }, + lastName: { + type: String, + required: true, + }, + userName: { + type: String, + required: true, + }, + password: { + type: String, + required: true, + }, + +// isAdmin: { +// type: Boolean, +// required: true, +// }, +// dateOfJoining: { +// type: Date, +// }, +// salary: { +// type: Number, +// }, +// designation: { +// type: String, +// }, +// active: { +// type: Number, +// }, +// token: { +// type: String, +// }, +// image: { +// type: String, +// }, +// userEmail: { +// type: String, +// }, +// accountNumber: { +// type: String, +// }, +// ifscCode: { +// type: String, +// }, +}); + +// employesSchema.methods.comparePassword = async function (candidatePassword) { +// return bcrypt.compare(candidatePassword, this.password); +// }; + +// employesSchema.methods.generateAuthToken = function () { +// const token = jwt.sign( +// { _id: this._id, userName: this.userName }, +// "qwertyuiopasdfghjklzxcvbnmm", +// { expiresIn: "8h" } +// ); +// return token; +// }; + +module.exports = mongoose.model("user", userSchema); diff --git a/Team-CodeForMap/houseapp-backend/package-lock.json b/Team-CodeForMap/houseapp-backend/package-lock.json new file mode 100644 index 00000000..af00b214 --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/package-lock.json @@ -0,0 +1,995 @@ +{ + "name": "houseapp-backend", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "houseapp-backend", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "cors": "^2.8.5", + "dotenv": "^16.3.1", + "express": "^4.18.2", + "mongodb": "^6.2.0", + "mongoose": "^7.6.3" + } + }, + "node_modules/@mongodb-js/saslprep": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.0.tgz", + "integrity": "sha512-Xfijy7HvfzzqiOAhAepF4SGN5e9leLkMvg/OPOF97XemjfVCYN/oWa75wnkc6mltMSTwY+XlbhWgUOJmkFspSw==", + "dependencies": { + "sparse-bitfield": "^3.0.3" + } + }, + "node_modules/@types/node": { + "version": "20.8.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz", + "integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==", + "dependencies": { + "undici-types": "~5.25.1" + } + }, + "node_modules/@types/webidl-conversions": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.2.tgz", + "integrity": "sha512-uNv6b/uGRLlCVmelat2rA8bcVd3k/42mV2EmjhPh6JLkd35T5bgwR/t6xy7a9MWhd9sixIeBUzhBenvk3NO+DQ==" + }, + "node_modules/@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "dependencies": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/bson": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/bson/-/bson-5.5.1.tgz", + "integrity": "sha512-ix0EwukN2EpC0SRWIj/7B5+A6uQMQy6KMREI9qQqvgpkV2frH63T0UDVd1SYedL6dNCmDBYB3QtXi4ISk9YT+g==", + "engines": { + "node": ">=14.20.1" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dependencies": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dependencies": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dependencies": { + "get-intrinsic": "^1.2.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/kareem": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==" + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mongodb": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.2.0.tgz", + "integrity": "sha512-d7OSuGjGWDZ5usZPqfvb36laQ9CPhnWkAGHT61x5P95p/8nMVeH8asloMwW6GcYFeB0Vj4CB/1wOTDG2RA9BFA==", + "dependencies": { + "@mongodb-js/saslprep": "^1.1.0", + "bson": "^6.2.0", + "mongodb-connection-string-url": "^2.6.0" + }, + "engines": { + "node": ">=16.20.1" + }, + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.188.0", + "@mongodb-js/zstd": "^1.1.0", + "gcp-metadata": "^5.2.0", + "kerberos": "^2.0.1", + "mongodb-client-encryption": ">=6.0.0 <7", + "snappy": "^7.2.2", + "socks": "^2.7.1" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "gcp-metadata": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + }, + "socks": { + "optional": true + } + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "dependencies": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "node_modules/mongodb/node_modules/bson": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-6.2.0.tgz", + "integrity": "sha512-ID1cI+7bazPDyL9wYy9GaQ8gEEohWvcUl/Yf0dIdutJxnmInEEyCsb4awy/OiBfall7zBA179Pahi3vCdFze3Q==", + "engines": { + "node": ">=16.20.1" + } + }, + "node_modules/mongoose": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.6.3.tgz", + "integrity": "sha512-moYP2qWCOdWRDeBxqB/zYwQmQnTBsF5DoolX5uPyI218BkiA1ujGY27P0NTd4oWIX+LLkZPw0LDzlc/7oh1plg==", + "dependencies": { + "bson": "^5.5.0", + "kareem": "2.5.1", + "mongodb": "5.9.0", + "mpath": "0.9.0", + "mquery": "5.0.0", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "engines": { + "node": ">=14.20.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, + "node_modules/mongoose/node_modules/mongodb": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.0.tgz", + "integrity": "sha512-g+GCMHN1CoRUA+wb1Agv0TI4YTSiWr42B5ulkiAfLLHitGK1R+PkSAf3Lr5rPZwi/3F04LiaZEW0Kxro9Fi2TA==", + "dependencies": { + "bson": "^5.5.0", + "mongodb-connection-string-url": "^2.6.0", + "socks": "^2.7.1" + }, + "engines": { + "node": ">=14.20.1" + }, + "optionalDependencies": { + "@mongodb-js/saslprep": "^1.1.0" + }, + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.188.0", + "@mongodb-js/zstd": "^1.0.0", + "kerberos": "^1.0.0 || ^2.0.0", + "mongodb-client-encryption": ">=2.3.0 <3", + "snappy": "^7.2.2" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + } + } + }, + "node_modules/mongoose/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz", + "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", + "dependencies": { + "debug": "4.x" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/mquery/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mquery/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sift": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + } + } +} diff --git a/Team-CodeForMap/houseapp-backend/package.json b/Team-CodeForMap/houseapp-backend/package.json new file mode 100644 index 00000000..a135e077 --- /dev/null +++ b/Team-CodeForMap/houseapp-backend/package.json @@ -0,0 +1,19 @@ +{ + "name": "houseapp-backend", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "cors": "^2.8.5", + "dotenv": "^16.3.1", + "express": "^4.18.2", + "mongodb": "^6.2.0", + "mongoose": "^7.6.3" + } +} diff --git a/Team-CodeForMap/houseapp-frontend b/Team-CodeForMap/houseapp-frontend new file mode 160000 index 00000000..07424756 --- /dev/null +++ b/Team-CodeForMap/houseapp-frontend @@ -0,0 +1 @@ +Subproject commit 07424756158fdb10724f335d8ea2a36bc48384fe diff --git a/Team-CodeForMap/houseopenAi/Openai/can you tell me the distance between the india and america.txt b/Team-CodeForMap/houseopenAi/Openai/can you tell me the distance between the india and america.txt new file mode 100644 index 00000000..091a36db --- /dev/null +++ b/Team-CodeForMap/houseopenAi/Openai/can you tell me the distance between the india and america.txt @@ -0,0 +1,6 @@ +OpenAI response for Prompt: using artificial intelligence can you tell me the distance between the india and america + ************************* + + + +The distance between India and the United States is approximately 8,000 miles (12,875 km). diff --git a/Team-CodeForMap/houseopenAi/Openai/write and mail for resignation from the amazon.txt b/Team-CodeForMap/houseopenAi/Openai/write and mail for resignation from the amazon.txt new file mode 100644 index 00000000..4443791d --- /dev/null +++ b/Team-CodeForMap/houseopenAi/Openai/write and mail for resignation from the amazon.txt @@ -0,0 +1,20 @@ +OpenAI response for Prompt: using artificial intelligence write and mail for resignation from the amazon + ************************* + + + +Dear [Name of the recipient], + +This letter is to inform you of my decision to resign from my position as [Position] at Amazon. + +I have enjoyed working at Amazon for the past [number of years], and have appreciated the opportunities for growth and development that the company has provided me. However, after careful consideration, I have decided that it is time for me to pursue other opportunities. + +I am grateful for the support I have received from my colleagues, and I am confident that I am leaving the team in a good position. I have enjoyed my time here and wish the company continued success in the future. + +I will be available until [date] to complete any necessary paperwork and help with the transition. + +Thank you for your understanding. + +Sincerely, + +[Your Name] diff --git a/Team-CodeForMap/houseopenAi/PyAudio-0.2.11-cp311-cp311-win32.whl b/Team-CodeForMap/houseopenAi/PyAudio-0.2.11-cp311-cp311-win32.whl new file mode 100644 index 00000000..245f9222 Binary files /dev/null and b/Team-CodeForMap/houseopenAi/PyAudio-0.2.11-cp311-cp311-win32.whl differ diff --git a/Team-CodeForMap/houseopenAi/config.py b/Team-CodeForMap/houseopenAi/config.py new file mode 100644 index 00000000..79a6a086 --- /dev/null +++ b/Team-CodeForMap/houseopenAi/config.py @@ -0,0 +1,2 @@ +# Create a new account on open ai and you will get free $5 for api key ,generate one and paste that here.. +apikey = "your api key" diff --git a/Team-CodeForMap/houseopenAi/main.py b/Team-CodeForMap/houseopenAi/main.py new file mode 100644 index 00000000..64e5ca6f --- /dev/null +++ b/Team-CodeForMap/houseopenAi/main.py @@ -0,0 +1,103 @@ +import speech_recognition as sr +import os +import webbrowser +import openai +from config import apikey +import datetime +import pyttsx3 +import speech_recognition as sr + +chatStr = "" + +def chat(query): + global chatStr + print(chatStr) + openai.api_key = apikey + chatStr += f"Ankush: {query}\n loco: " + response = openai.Completion.create( + model="text-davinci-003", + prompt= chatStr, + temperature=0.7, + max_tokens=256, + top_p=1, + frequency_penalty=0, + presence_penalty=0 + ) + speak(response["choices"][0]["text"]) + chatStr += f"{response['choices'][0]['text']}\n" + return response["choices"][0]["text"] + +def ai(prompt): + openai.api_key = apikey + text = f"OpenAI response for Prompt: {prompt} \n *************************\n\n" + response = openai.Completion.create( + model="text-davinci-003", + prompt=prompt, + temperature=0.7, + max_tokens=256, + top_p=1, + frequency_penalty=0, + presence_penalty=0 + ) + text += response["choices"][0]["text"] + if not os.path.exists("Openai"): + os.mkdir("Openai") + with open(f"Openai/{''.join(prompt.split('intelligence')[1:]).strip()}.txt", "w") as f: + f.write(text) + +def speak(text): + engine = pyttsx3.init() + engine.say(text) + engine.runAndWait() + +def takeCommand(): + r = sr.Recognizer() + with sr.Microphone() as source: + print("Listening...") + r.adjust_for_ambient_noise(source) + audio = r.listen(source) + + try: + print("Recognizing...") + query = r.recognize_google(audio, language='en-in') + print(f"User said: {query}") + return query + except sr.UnknownValueError: + speak("Sorry, I didn't catch that. Could you please repeat?") + return takeCommand() + except sr.RequestError: + speak("I'm sorry, but I couldn't access the internet to recognize your speech. Please check your connection.") + return None + +if __name__ == '__main__': + speak("Hello, I'm loco, your voice assistant, and I'm here to help you with the 'HouseForYou' app. Let's get started!") + while True: + user_input = takeCommand().lower() + sites = [["youtube", "https://www.youtube.com"], ["wikipedia", "https://www.wikipedia.com"], ["google", "https://www.google.com"]] + for site in sites: + if f"Open {site[0]}".lower() in user_input: + speak(f"Opening {site[0]} sir...") + webbrowser.open(site[1]) + if "open music" in user_input: + musicPath = "C:/Users/artim/Downloads/Egzod & Maestro Chives - Royalty (Don Diablo Remix) [NCS Release].mp3" + os.startfile(musicPath) + elif "the time" in user_input: + hour = datetime.datetime.now().strftime("%H") + min = datetime.datetime.now().strftime("%M") + speak(f"Sir time is {hour} bajke {min} minutes") + elif "Using artificial intelligence".lower() in user_input.lower(): + ai(prompt=user_input) + elif "stop".lower() in user_input.lower(): + speak("good Bye") + exit() + elif "reset chat".lower() in user_input.lower(): + chatStr = "" + elif "one person " in user_input: + response = "I have two rooms in Delhi for one person:\n1. Rajendra Nagar - Price: 3000 rupees\n2. Rajeev Chowk - Price: 4000 rupees" + speak(response) + elif "two person " in user_input: + response = "I have two rooms in meerut for two person:\n1. Shastri Nagar - Price: 10000 rupees\n2. k-block - Price: 8000 rupees" + speak(response) + else: + print("Chatting...") + chat(user_input) diff --git a/gitattributes b/gitattributes new file mode 100644 index 00000000..95f90ad7 --- /dev/null +++ b/gitattributes @@ -0,0 +1,57 @@ +## Unity ## + +*.cs diff=csharp text +*.cginc text +*.shader text + +*.mat merge=unityyamlmerge eol=lf +*.anim merge=unityyamlmerge eol=lf +*.unity merge=unityyamlmerge eol=lf +*.prefab merge=unityyamlmerge eol=lf +*.physicsMaterial2D merge=unityyamlmerge eol=lf +*.physicMaterial merge=unityyamlmerge eol=lf +*.asset merge=unityyamlmerge eol=lf +*.meta merge=unityyamlmerge eol=lf +*.controller merge=unityyamlmerge eol=lf + + +## git-lfs ## + +#Image +*.jpg filter=lfs diff=lfs merge=lfs -text +*.jpeg filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.gif filter=lfs diff=lfs merge=lfs -text +*.psd filter=lfs diff=lfs merge=lfs -text +*.ai filter=lfs diff=lfs merge=lfs -text +*.tif filter=lfs diff=lfs merge=lfs -text + +#Audio +*.mp3 filter=lfs diff=lfs merge=lfs -text +*.wav filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text + +#Video +*.mp4 filter=lfs diff=lfs merge=lfs -text +*.mov filter=lfs diff=lfs merge=lfs -text + +#3D Object +*.FBX filter=lfs diff=lfs merge=lfs -text +*.fbx filter=lfs diff=lfs merge=lfs -text +*.blend filter=lfs diff=lfs merge=lfs -text +*.obj filter=lfs diff=lfs merge=lfs -text + +#ETC +*.a filter=lfs diff=lfs merge=lfs -text +*.exr filter=lfs diff=lfs merge=lfs -text +*.tga filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.dll filter=lfs diff=lfs merge=lfs -text +*.unitypackage filter=lfs diff=lfs merge=lfs -text +*.aif filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.rns filter=lfs diff=lfs merge=lfs -text +*.reason filter=lfs diff=lfs merge=lfs -text +*.lxo filter=lfs diff=lfs merge=lfs -text +*.bc filter=lfs diff=lfs merge=lfs -text \ No newline at end of file