-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1.09 KB
/
Makefile
File metadata and controls
48 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.PHONY: help install dev build test clean docker-up docker-down migrate seed
help:
@echo "Service Request App - Available Commands:"
@echo " make install - Install all dependencies"
@echo " make dev - Run development servers (frontend + backend)"
@echo " make build - Build production frontend"
@echo " make test - Run all tests"
@echo " make migrate - Run database migrations"
@echo " make seed - Seed database with sample data"
@echo " make docker-up - Start Docker containers"
@echo " make docker-down - Stop Docker containers"
@echo " make clean - Clean node_modules and build files"
install:
npm install
cd backend && npm install
cd frontend && npm install
dev:
npm run dev
build:
cd frontend && npm run build
test:
cd backend && npm test
migrate:
cd backend && npm run migrate
seed:
cd backend && npm run seed
docker-up:
docker-compose up -d
docker-down:
docker-compose down
docker-build:
docker-compose build
clean:
rm -rf node_modules
rm -rf backend/node_modules
rm -rf frontend/node_modules
rm -rf frontend/build