Skip to content

ska-sa/vehicle-management-system-application

Repository files navigation

vehicle-management-system-application

These are the key components of the backend and a bit of database so far.

Database (PostgreSQL)

  • Stores all data in tables: users, vehicles, service_history, service_notification

  • This could be updated based on the approved ERD.

  • Managed through PgAdmin at http://localhost:5050 and Docker.

FastAPI Backend

How it all connects

  1. Docker run these services together:

    • PostgreSQL databse on (port 5432)
    • PgAdmin on (port 5050)
    • FastAPI server(uvicorn) on (Port 8000)
  2. The application:

    • Uses SQLAlchemy models to interact with the database (models.py)
    • Provides endpoints that match ERD diagram functions(yet to be approved) (main.py)
    • Validates data with Pydantic schemas (schemas.py)
    • The init.py initializes the database.

To start everthing use these commands on the terminal: * docker-compose down (this command is for shutting down docker.) * docker-compose up --build (This command for starting and building docker) * run both commands if you made edits to the project.

Check the docker-compose file for password, username for pgadmin(login) and postgres(database).

If you have any problems please communicate in the whatsapp group chat or send an email to Pieter and Nomcebo. Don't forget to cc one of them when you email your queries.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •