Skip to content

School project developed in Django to manage a car dealership.

Notifications You must be signed in to change notification settings

Goncalo-Marques/car-dealership

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

car-dealership

School project developed in Django to manage a car dealership.

Dependencies

Python: 3.10.0

pip install -r requirements.txt 

Quickstart

Database

System: PostgreSQL

Create the database:

CREATE DATABASE car_dealership OWNER your_owner;

Backend

  1. Configure the backend database

    File: car-dealership-backend/car_dealership_backend/settings.py

    DATABASES = {
        "default": {
            "ENGINE": "django.db.backends.postgresql",
            "NAME": "car_dealership",
            "USER": "your_owner",
            "PASSWORD": "your_password",
            "HOST": "localhost",
            "PORT": "5432",
        }
    }
  2. Apply migrations

    python car-dealership-backend/manage.py migrate
  3. (Optional) create super user

    python car-dealership-backend/manage.py createsuperuser
  4. Run server

    python car-dealership-backend/manage.py runserver 8000

Frontend

  1. Run server

    python car-dealership-frontend/manage.py runserver 8001

Servers

Backend: http://127.0.0.1:8000/
API Docs: http://127.0.0.1:8000/
Backoffice: http://127.0.0.1:8000/admin
Frontend: http://127.0.0.1:8001/

About

School project developed in Django to manage a car dealership.

Topics

Resources

Stars

Watchers

Forks