26 lines
371 B
Markdown
26 lines
371 B
Markdown
# Frontend
|
|
|
|
## Local development
|
|
|
|
```bash
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
Frontend runs on `http://localhost:3001`.
|
|
|
|
`.env.local` must include:
|
|
|
|
```env
|
|
BACKEND_URL=http://localhost:3000/api
|
|
```
|
|
|
|
## Docker compose (from project root)
|
|
|
|
```bash
|
|
make build
|
|
make up
|
|
```
|
|
|
|
Frontend container listens on port `3001` and uses `BACKEND_URL=http://backend:3000/api` from root compose.
|