30 lines
637 B
Makefile
30 lines
637 B
Makefile
set dotenv-load := true
|
|
set export := true
|
|
|
|
default:
|
|
@just --list
|
|
|
|
# Install dependencies for both backend and frontend
|
|
setup:
|
|
cd backend && cargo fetch
|
|
cd frontend && npm install
|
|
|
|
# Build backend and frontend
|
|
build:
|
|
cd backend && cargo build
|
|
cd frontend && npm run build
|
|
|
|
# Run tests for both backend and frontend
|
|
test:
|
|
cd backend && cargo test
|
|
cd frontend && npm test
|
|
|
|
# Start the stack with Docker Compose
|
|
docker:
|
|
docker compose up --build
|
|
|
|
# Run backend and frontend for development
|
|
dev:
|
|
@echo "Starting backend and frontend..."
|
|
(cd backend && cargo run) & (cd frontend && npm run dev) & wait
|