"Find a Roomie" is a web application designed to assist students across the globe in finding suitable accommodation. With a focus on ease of use and security, it offers a platform for users to list or search for rooms with just a few clicks.
- User-Friendly Interface: Intuitive design for effortless navigation.
- Secure Login: Ensures a safe, personalized user experience.
- Dual Functionality:
- List a Room: Users can list their available rooms with detailed preferences.
- Find a Room: Advanced search options with customizable filters.
- Additional Implementations: Blog integration, advanced security features, and confidentiality of personal information.
-
Clone the Repository:
git clone <repository-url> cd <repository-directory>
-
Open Project in VS Code: Open VS Code and navigate to File -> Open... or use the command line:
code . -
Environment Variables Ensure to set up these environment variables before running the application:
- MONGODB_URI: MongoDB connection string for the 'roomies' database.
- PORT: Port number on which the server will run (e.g., 3002).
- REACT_APP_API_BASE_URL: Base URL for the API server (e.g., http://localhost:3002).
-
Install Dependencies: If your project requires dependencies (typically managed via
package.jsonfor Node.js projects, install them using:npm install-all # From root folder for installing backend and frontend dependencies or npm install # To be run individually from backend and frontend
-
Run Project
To start the backend server, run:
npm run start-backend # run from root folderThis will start the server using
node backend/server.js.To start the frontend development server, run:
npm run start-frontend # run from root folderThis will navigate to the
frontenddirectory and start the development server usingnpm start.To start both the backend and frontend concurrently (in development mode), run:
npm start # run from root folderThis uses
concurrentlyto run bothnpm run start-backendandnpm run start-frontendsimultaneously. -
Git Workflow
-
Creating a new branch:
git branch new-branch-name git checkout new-branch-name # or using a single command git checkout -b new-branch-name -
Commit Changes:
git add . git commit -m "Your commit message" git push origin new-branch-name
-
These commands help in creating a new branch, switching to it, staging changes, committing them, and pushing the changes to the remote repository.

