Skip to content

sparcs-kaist/new-ara-api

Repository files navigation

Ara API

Restful API for Ara, KAIST's official community service

GitHub Pipenv locked Python version (master) Code style: black Imports: isort pre-commit Conventional Commits

Project Setup

Use pipenv to install packages. (e.g., pipenv install <package>)

pipenv --python 3.11 # Use python 3.11
pipenv shell # Activate virtual environment
pipenv install --dev # Install packages (`--dev` flag for development)

# Run `pre-commit` automatically on `git commit`
pre-commit install
pre-commit install --hook-type commit-msg

How to Run

docker compose -f docker-compose.local.yml up -d
pipenv shell
make run

URLs

  • Base URL: /api
  • Admin page: /api/admin/
  • API documentations:
    • /api/schema/swagger/
    • /api/schema/redoc/

How to Contribute

  1. Follow Conventional Commits for writing commit messages.
  2. Use type hints strictly. (Check PEP 484.)