voidnowhere / JDM

Car Rental Web App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JDM (Japanese Domestic Market)

Demonstration

JDMWebApp.mp4

Car Rental Web App


Clone repository

git clone https://github.com/MOtAkAli/JDM.git

Set up environment

Install virtualenv

pip install virtualenv

Change current directory to JDM

cd JDM

Create .env file and fill it

cat .env-example > .env

Use the output of this python code to get random Django SECRET_KEY as your SECRET_KEY in .env file be aware this code needs Django to be installed use pip install Django

from django.core.management import utils
print(utils.get_random_secret_key())

Create python virtual environment

python -m venv venv

Activate it

  • Command Prompt
venv\Scripts\activate.bat
  • Linux
source venv/Scripts/activate
  • PowerShell no scripts like the activate script are allowed to be executed so you need to run PowerShell as admin and change ExecutionPolicy to AllSigned then type A to Always run the command is under in the end use the command above to activate virtual environment
Set-ExecutionPolicy AllSigned

Install virtualenv requirements

pip install -r requirements.txt

Make migrations

python manage.py makemigrations

Apply migrations

python manage.py migrate

Populate DB with cities

python manage.py cities_light

Create your superuser for django admin site

python manage.py createsuperuser

Run server

python manage.py runserver

Database

  • LDM (Logical Data Model)

MLD

Needs to be done

Always check requirements.txt if there is some new packages to be installed

About

Car Rental Web App

License:MIT License


Languages

Language:HTML 63.1%Language:Python 32.8%Language:JavaScript 4.0%Language:Procfile 0.0%