Prerequisites: Docker Desktop
-
Start the containers:
docker-compose up --build
-
Run the database migration (first time only):
docker-compose exec api node db/migrate.js -
Start the frontend:
bun dev
API is available at http://localhost:7071/api
Frontend is available at http://localhost:5173
Prerequisites: Azure Functions Core Tools and Azure CLI
-
Log in to Azure:
az login
-
Deploy the API:
cd api func azure functionapp publish testneas --javascript --build remote
For local development, set these in docker-compose.yml. For Azure, set them in the Function App's Environment Variables in the Azure portal.
| Variable | Description |
|---|---|
SQL_SERVER |
SQL Server hostname |
SQL_PORT |
SQL Server port (default: 1433) |
SQL_DATABASE |
Database name |
SQL_USER |
SQL login username |
SQL_PASSWORD |
SQL login password |