chore: initial import
This commit is contained in:
30
api/README.md
Normal file
30
api/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# API
|
||||
|
||||
Django project configured for the Full Moon Bakehouse platform. The scaffold is minimal but wired to the Docker environment variables.
|
||||
|
||||
## Development
|
||||
|
||||
Inside Docker (recommended):
|
||||
|
||||
```bash
|
||||
docker compose up api-gpt
|
||||
```
|
||||
|
||||
Run management commands via:
|
||||
|
||||
```bash
|
||||
docker compose exec api-gpt python manage.py migrate
|
||||
docker compose exec api-gpt python manage.py createsuperuser
|
||||
```
|
||||
|
||||
For local development outside Docker, create a virtualenv and install requirements:
|
||||
|
||||
```bash
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
python manage.py migrate
|
||||
python manage.py runserver
|
||||
```
|
||||
|
||||
Environment variables default to SQLite if `DATABASE_URL` is not provided.
|
||||
Reference in New Issue
Block a user