Basic Features
- Login & Registration with User Session Handle
- Search Certain Apartment Unit
- Register Pets
- Post and View Interests
- Display Unit and Building Info
Additional Features
- Advanced Search of Units
- Search Interest
- Estimate Monthly Rent
- Favourite
- Extra View on the Rent Price
- Comment System
Application Related Features
- Sessions
- Necessary Security Mechanism
Commands to run:
- To install the dependencies, open two separate terminals (one in the "backend" directory and the other in the "frontend" directory):
In the backend terminal run:
pip install -r requirements.txt
In the frontend terminal run:
npm install
- Use mysqldump to export your database to a SQL file. This file will contain the SQL commands to recreate the database structure and insert the data. Replace username and target_database with your local MySQL credentials and also update
.env
with your database name, username, password and port name.
mysql -u username -p target_database < path/to/roomie.sql
OR (for Windows)
Get-Content roomie.sql | ./mysql -u root -p roomie
- In your terminal, navigate to your project directory. Run the following commands to apply initial database migrations:
python manage.py makemigrations
python manage.py migrate
- To get the server/client up and running, run the following command:
In the backend terminal:
python3 manage.py runserver
In the frontend terminal:
npm start
-
You should see a message indicating the server is running, and you can visit http://127.0.0.1:8000 in your web browser to see the default Django welcome page.
-
To save your database changes in mysql before commiting and pushing to git
.\mysqldump -u username -p target_database > roomie.sql