-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 921 Bytes
/
Copy pathMakefile
File metadata and controls
48 lines (37 loc) · 921 Bytes
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
APP_NAME=snippets.dev
WEB_PORT=3000
DB_PORT=5555
BASE_URL=http://localhost:
list:
@echo "Commands:"
@echo " 🔄 list - list the commands"
@echo " 🔄 first-time - first time setup"
@echo " 🚀 run - run the web app"
@echo " 🔨 build - build the web app"
@echo " 🌐 open - open the web app"
@echo " 💾 studio - open the prisma studio"
@echo " 🔄 migrate - migrate the database"
@echo " 🔄 generate - generate the prisma client"
@echo " 🐳 up - up the docker compose"
@echo " 🐳 down - down the docker compose"
first-time:
pnpm install
make generate
make up
run:
pnpm dev
build:
pnpm build
open:
open $(BASE_URL)$(WEB_PORT)
studio:
pnpm dlx prisma studio && open $(BASE_URL)$(DB_PORT)
migrate:
pnpm dlx prisma migrate dev
generate:
pnpm dlx prisma generate
up:
docker compose up -d
down:
docker compose down
.PHONY: run build open studio migrate generate up down