-
Prisma Client
git clone https://github.com/sho-zy/prisma-gin.git
dep ensure
docker-compose up -d
prisma deploy
-
Prisma App
dep ensure -update
go run index.go
-
Prisma Admin
http://localhost:4466 -
RestAPI Server
http://localhost:8080
-
Update and deploy the Prisma Client.
( execute when you changed./prisma/datamodel.prisma
)prisma deploy
after, you can use the Prisma Admin.
-
Start the RestAPI server.
go run index.go
after, you can use the RestAPI server.
- Case when you add tables.
- Add table definition to the following modules.
./prisma/datamodel.prisma
- execute the following commands.
prisma deploy
- edit the resolver (
./index.go
). - execute the following commands.
dep ensure -update
go run ./server
- Add table definition to the following modules.