Skip to content

lhthang1998/go-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restful GIN

Rest API with Golang, MongoDB

Feature

  • CRUD API
  • Authentication
  • Authorization
  • CORS
  • Auto generate Swagger Docs with annotations

Technologies

Packages

Set up

  • Create file .env
  • Set MongoDB URI and DB
    • PORT = "8585" or your port
    • MONGO_HOST = "your host/ localhost:27017"
    • MONGO_DB_NAME = "your db name"

Run

  • go mod download for download dependencies
  • go run main.go

Swagger

  • localhost:8585/swagger/index.html

Graphql

  • localhost:8585/graphql
  • localhost:8585/graphiql (UI)

About

Golang with MongoDB and GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published