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
- Prototype Presentation link :
- drive link
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:
-
Navigate to the Frontend Folder:
- Open your terminal and change the directory to "houseapp-frontend" using the following command:
cd houseapp-frontend
- Open your terminal and change the directory to "houseapp-frontend" using the following command:
-
Run Ionic Development Server:
- Start the development server by executing the command:
ionic serve
- This command will host your app on a local server, accessible through your web browser.
- Start the development server by executing the command:
-
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.
- Open your web browser and navigate to the local host URL where your app is running, usually at
Running Your App within an Android Emulator:
Before testing on an Android emulator, ensure the Android SDK, Java, and emulator are properly configured.
-
Build Your App:
- Use the following command to build your Ionic app:
ionic build
- Use the following command to build your Ionic app:
-
Copy the Web Assets:
- Copy your web assets to the native Android project folder with this command:
npx cap copy
- Copy your web assets to the native Android project folder with this command:
-
Open the Android Project:
- Launch Android Studio by executing:
npx cap open android
- This command opens the project files in Android Studio.
- Launch Android Studio by executing:
-
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.
-
Navigate to the Backend Directory:
- Open your terminal and change the current directory to the "houseapp-backend" folder using the following command:
cd houseapp-backend
- Open your terminal and change the current directory to the "houseapp-backend" folder using the following command:
-
Install Required Dependencies:
- Install the "dotenv" package by running this command:
npm install dotenv
- Install the "dotenv" package by running this command:
-
Start the Backend Server:
- Initiate the backend server by executing the following command:
node index
- If you see the message "Connected to Db," it means the server is running successfully.
- Initiate the backend server by executing the following command:
-
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_PORTwith the specific port number configured in your backend settings.
- Access the application on your local machine by opening a web browser and navigating to the URL, usually
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:
-
Create an OpenAI Account:
- Begin by visiting the OpenAI website (https://www.openai.com) and creating a new account if you haven't already.
-
Access Your Dashboard:
- After creating your account, log in to the OpenAI platform and access your user dashboard.
-
Generate an API Key:
- In your OpenAI dashboard, navigate to the API or Developer section. Look for the option to generate an API key.
-
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.
-
Copy the API Key:
- Once your API key is generated, copy it to your clipboard.
-
Configure the API Key in Your Project:
- Open the
config.pyfile in your project and paste the API key you copied in the previous step.
- Open the
-
Save the
config.pyFile:- After pasting the API key, save the
config.pyfile to ensure that your project can access the OpenAI API.
- After pasting the API key, save the
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.
-
Navigate to the OpenAI Folder:
- Open your preferred code editor (e.g., VS Code, PyCharm) and access the "houseopenAi" folder.
-
Run the Python Script:
- Open the "main.py" file.
- Execute the Python script by clicking the "Run" icon in your code editor.
-
Interact with the Loco:
- Interact with the Loco by speaking specific commands, such as:
- "What is the distance between any location to any location."
- Asking general questions.
- Using specific commands like:
- "Can you find a one-person room in Delhi?"
- "Can you help in finding a two-person room in Meerut?"
- To stop the app, say "Stop Loco!"
- Interact with the Loco by speaking specific commands, such as:
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.