Rest API with Golang, MongoDB
- CRUD API
- Authentication
- Authorization
- CORS
- Auto generate Swagger Docs with annotations
- 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"
go mod download
for download dependenciesgo run main.go
localhost:8585/swagger/index.html
localhost:8585/graphql
localhost:8585/graphiql
(UI)