Skip to content

The RestAPI Server using Golang, Prisma, and Gin.

Notifications You must be signed in to change notification settings

sho-zy/prisma-gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prisma-gin

Set up

  • 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

URLs

Commands

  • 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.

Cases

  • Case when you add tables.
    1. Add table definition to the following modules.
      ./prisma/datamodel.prisma
    2. execute the following commands.

      prisma deploy

    3. edit the resolver ( ./index.go ).
    4. execute the following commands.

      dep ensure -update
      go run ./server

About

The RestAPI Server using Golang, Prisma, and Gin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages