GithubHelp home page GithubHelp logo

fardinanam / rentastay Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 4.24 MB

Database project of level 2 term 2. A website built with django (python) and oracle database.

Python 23.61% HTML 47.92% JavaScript 12.20% CSS 16.27%
css django html5 javascript oracle-database python sql backend front-end website

rentastay's Introduction


RentaStay

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributors

About The Project

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.

Built With

Database

Oracle

Backend

Python Django

Fronend

HTML5

CSS3 Bootstrap

JavaScript jQuery

back to top

Getting Started

Follow the step by step installation procedure to install and run this on your machine

Prerequisites

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.

Installation

Getting the repository

  1. Clone the repo:

    git clone https://github.com/fardinanam/RentaStay.git
  2. If you don't have git installed in your device then download zip

Setting up Python

  1. Go to the repository base folder and open terminal.

  2. Install python packages

    pip install -r requirements.txt

    This will install all the required packages for this project

Setting up Oracle

  1. The oracle TNSListener and Services are supposed to run by default but on windows sometimes these are required to start manually. In that case, in Windows->Services find OracleOraDB19Home2TNSListener (or just find the one that starts with oracle and ends with Listener) and OracleServiceORCL. Start these sequencially.

  2. Open SQL Plus

  3. Enter credentials

    username: sys as sysdba
    password: password
  4. Create a new user sa

    create user sa identified by sa;
    grant all privileges to sa;

Setting up the Database

  1. Connect to oracle as sa in SQL Plus

  2. Copy and paste the codes from sql/schemas.sql and run.

  3. Copy and paste the codes from sql/PLSQL.sql and run it.

    Almost there...

  4. 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.)

  5. If no errors are shown we are good to go!

One last step

  1. Now that everything is set, open terminal in the base directory of the repo.

  2. Run the code

    python manage.py makemigrations
    python manage.py migrate

You are all set. Wohoo!

  • Run the server

    python manage.py runserver

back to top

Contributors

Supervisor

  • Dr. Rifat Shahriyar

    Professor

    Department of Computer Science and Engineering Bangladesh University of Engineering and Technology Dhaka-1000, Bangladesh

    โ–ถ Homepage:

    http://rifatshahriyar.github.io/

back to top

rentastay's People

Contributors

fardinanam avatar shehabul-islam-sawraz avatar

Stargazers

Akibur Rahman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.