Spaces:
Runtime error
Runtime error
|
Download docs/setup.md from mlcl-trading/afp-backend: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/mlcl-trading/afp-backend/resolve/main/docs/setup.md
- Command line
-
hf download hf://spaces/mlcl-trading/afp-backend/docs/setup.md
-
curl -L -o setup.md https://huggingface.co/spaces/mlcl-trading/afp-backend/resolve/main/docs/setup.md
520 Bytes
| # Setup | |
| ## Prerequisites | |
| - Python 3.12+ | |
| - Node.js (for Prisma CLI if needed) | |
| - Supabase CLI | |
| ## Install | |
| ```bash | |
| pip install -r requirements.lock.txt | |
| ``` | |
| ## Environment | |
| Copy `.env.example` into `.env` and set values. | |
| ## Local database and Prisma sync | |
| ```bash | |
| supabase start | |
| supabase db reset | |
| prisma db pull | |
| prisma generate | |
| ``` | |
| During the execution of the `supabase db reset` command it will autommatically look for a `supabase/seed.sql` file to seed the db. | |
| ## Run API | |
| ```bash | |
| uvicorn app.main:app --reload | |
| ``` | |