Table of Contents
RentaStay is an oracle powered bootstrapped Django website inspired by Airbnb. Here a user can rent rooms that are available in the location they are going. At the same time, they can upload the information of their own house so that others can rent that. Based on this key idea many other features are added to ease access of the site for the users. We tried our best to add as many features as we could in this brief time.
Watch the video describing detailed features of the website here.
The goal of the project was to learn database from the core. So, we were not allowed to use Django's built-in models features. Instead, we had to use raw sql. Other than that, we had the privilege to use all the other features of Django that made the website easier to build. This was quite a challenging journey but a fun way to learn new things about website development.
Follow the step by step installation procedure to install and run this on your machine
Make sure you have python and oracle installed in your device.
Python
: Install Python from here.
Oracle
: Install Oracle from here and register for an account of your own.
-
Clone the repo:
git clone https://github.com/fardinanam/RentaStay.git
-
If you don't have git installed in your device then download zip
-
Go to the repository base folder and open terminal.
-
Install python packages
pip install -r requirements.txt
This will install all the required packages for this project
-
The oracle
TNSListener
andServices
are supposed to run by default but on windows sometimes these are required to start manually. In that case, inWindows->Services
findOracleOraDB19Home2TNSListener
(or just find the one that starts with oracle and ends with Listener) andOracleServiceORCL
. Start these sequencially. -
Open SQL Plus
-
Enter credentials
username: sys as sysdba password: password
-
Create a new user sa
create user sa identified by sa; grant all privileges to sa;
-
Connect to oracle as sa in SQL Plus
-
Copy and paste the codes from sql/schemas.sql and run.
-
Copy and paste the codes from sql/PLSQL.sql and run it.
Almost there...
-
copy and paste all the codes from sql/insert_locations.sql and run. (Only the cities of Bangladesh are added here. You can add more if you want.)
-
If no errors are shown we are good to go!
-
Now that everything is set, open terminal in the base directory of the repo.
-
Run the code
python manage.py makemigrations python manage.py migrate
-
Run the server
python manage.py runserver
-
Dr. Rifat Shahriyar
Professor
Department of Computer Science and Engineering Bangladesh University of Engineering and Technology Dhaka-1000, Bangladesh
▶ Homepage: