Download makefile from dedw231/new-api: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/dedw231/new-api/resolve/main/makefile
- Command line
-
hf download hf://spaces/dedw231/new-api/makefile
-
curl -L -o makefile https://huggingface.co/spaces/dedw231/new-api/resolve/main/makefile
377 Bytes
| FRONTEND_DIR = ./web | |
| BACKEND_DIR = . | |
| .PHONY: all build-frontend start-backend | |
| all: build-frontend start-backend | |
| build-frontend: | |
| @echo "Building frontend..." | |
| @cd $(FRONTEND_DIR) && bun install && DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat VERSION) bun run build | |
| start-backend: | |
| @echo "Starting backend dev server..." | |
| @cd $(BACKEND_DIR) && go run main.go & | |