Skip to content

samling/petofthemonth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • python > 3.11
  • pyenv (Optional)
  • nvm (Optional)
  • Docker (Optional)

Setup

  1. Create/activate virtualenv:

    pyenv activate venv
    
  2. pip install -r requirements.txt

Running (Development)

  1. Start the database docker containers:
docker compose up -d
  1. (Optional) From the backend folder, initialize database and run migrations:
aerich init -t src.database.config.TORTOISE_ORM
aerich init-db
aerich migrate
aerich upgrade
  1. Start the API server:
python main.py
  1. Start the Vue server:
npm run dev (local)
npm run dev -- --host (exposed)

Testing

  1. Navigate to http://<ip>:5173 for the VueJS frontend

  2. Navigate to http://<ip>:8000/docs for the FastAPI application docs page

About

Web API and UI for Pet of the Month

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published