Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team CodeForMap #66

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e13b1a8
Create README.md
01ankush Oct 29, 2023
e22a4f3
test
01ankush Oct 29, 2023
c12d72c
test
01ankush Oct 29, 2023
4e3f2fa
test
01ankush Oct 29, 2023
b97c2c2
Create roomRoutes.js
01ankush Oct 29, 2023
8eb5de1
Create userRoutes.js
01ankush Oct 29, 2023
d5d7b8d
Create userRoutes.js
01ankush Oct 29, 2023
af4fb1c
Create room.js
01ankush Oct 29, 2023
624dae9
Create user.js
01ankush Oct 29, 2023
9084dc5
Create index.js
01ankush Oct 29, 2023
3a48623
Create package-lock.json
01ankush Oct 29, 2023
65a5f57
Create package.json
01ankush Oct 29, 2023
50de5ea
Create can you tell me the distance between the india and america.txt
01ankush Oct 29, 2023
e1ea85d
Create write and mail for resignation from the amazon.txt
01ankush Oct 29, 2023
d5922ce
Add files via upload
01ankush Oct 29, 2023
7b456f1
Create config.py
01ankush Oct 29, 2023
3cdf3a6
Create main.py
01ankush Oct 29, 2023
3b985f1
Create README.md
01ankush Oct 29, 2023
792b510
Update README.md
01ankush Oct 29, 2023
4b8af9f
Update README.md
01ankush Oct 29, 2023
f89df0b
Update README.md
01ankush Oct 29, 2023
0f489a7
Create gitattributes
01ankush Oct 29, 2023
f5db005
Update README.md
01ankush Oct 29, 2023
8f3370c
Update README.md
01ankush Oct 29, 2023
b1a783a
Update README.md
01ankush Oct 29, 2023
3f2c60c
Update README.md
01ankush Oct 29, 2023
6bd5cef
Update README.md
01ankush Oct 29, 2023
b666596
Update README.md
01ankush Oct 29, 2023
95f9bbf
Update README.md
01ankush Oct 30, 2023
8578d30
Create README.md
01ankush Oct 30, 2023
e6ef912
Update README.md
01ankush Oct 30, 2023
e28f4be
Create .env
01ankush Oct 30, 2023
4a59a11
Update config.py
01ankush Oct 30, 2023
2b81aa6
Update README.md
01ankush Oct 30, 2023
1072c37
Update README.md
01ankush Oct 30, 2023
e74a521
Update README.md
01ankush Oct 30, 2023
c4820e4
Update README.md
01ankush Oct 30, 2023
5da22f3
Update README.md
01ankush Oct 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Code-with-Google-Maps
Submodule Code-with-Google-Maps added at c12d72
174 changes: 150 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -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: [email protected]

## 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.
158 changes: 158 additions & 0 deletions Team-CodeForMap/README.md
Original file line number Diff line number Diff line change
@@ -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: [email protected]

**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.
2 changes: 2 additions & 0 deletions Team-CodeForMap/houseapp-backend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// replace username and password with yours
const MONGODB_URI = "mongodb+srv://<username>:<password>@cluster0.agvnxsg.mongodb.net/";
Loading