Skip to content

JMANN240/cares-center-inventory

Repository files navigation

CARES Center Inventory

This is an application to manage inventory in food pantries, specifically the CARES Center and Kent State University.

Installation

The requirements can be installed by optionally creating a virtual environment, activating it, and then running

pip install -r requirements.txt

This command should install all of the necessary dependencies and given versions for running the application. Once this is done the application can be run using any ASGI web server of your choosing, but uvicorn is included in requirements.txt by default. The command to run the server with uvicorn is

uvicorn main:app

optinally with a --reload flag for hot reloading.

Structure

main.py

main.py includes the main source code for running the appication. This is where FastAPI is set up and the backend logic is written.

database.py

database.py is where the setup is for the database. This is where the URL is set, engine is made, along with other general config.

models.py

models.py is where the SQLAlchemy models are kept. These allow for interfacing with the database with typed data.

schemas.py

schemas.py is where the pydantic models are kept. These allow for FastAPI to perform data validation and return typed data.

crud.py

crud.py is where CRUD utilities are kept, for creating, reading, updating, or deleting from the database.

static

The static directory is where static files such as CSS, JavaScript, or images are stored.

templates

The templates directory is where HTML temlpates are stored for the application to render them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published