Skip to content

hrehman24/JHTT_API

Repository files navigation

PWP SPRING 2026

Music Web API - Beatify

Group Information

Quick Start

Run all commands from project root.

0) Clone repository with submodules

PWP_JHHT_CLIENT is a submodule, so clone recursively:

git clone https://github.com/Heiguli/PWP_JHHT.git --recursive 
cd PWP_JHHT

If you already cloned without submodules, run:

git submodule update --init --recursive

1) Install dependencies

pip install -r Database_folder/requirements.txt
pip install flask-restful pytest pytest-cov

2) Setup database and start API

python setup.py

This script installs missing dependencies, recreates tables, populates sample data, and starts the API.

3) Start API manually (optional)

python -m Beatify.api

API base URL:

http://localhost:5000/Beatify/api/v1

Tests

Run only API test file:

python -m pytest tests/api_test.py -v

Run all tests:

python -m pytest -v

Run coverage:

python -m pytest tests/api_test.py -v --cov=Beatify --cov-report=term-missing

Documentation Index

Docker Deployment (Quick)

Build and run local production-style stack:

docker compose up --build

Docker setup now seeds sample data on first startup by default.

Then open:

http://localhost:5000/Beatify/api/v1/artists
http://localhost:5000/Beatify/api/v1/docs
http://localhost:5000/Beatify/api/v1/openapi.yaml

GitHub Actions workflow for CI/CD is in:

.github/workflows/ci-cd.yml

Validate OpenAPI locally:

python -m openapi_spec_validator docs/openapi.yaml

Note: /Beatify/api/v1 itself is not a standalone route in this API; use one of the resource or docs routes above.

Notes

  • The old app/ package docs are no longer used. Current code lives in the Beatify/ package.
  • If you change folder structure, update imports and scripts (setup.py, tests, and DB scripts) accordingly.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages