All Projects β†’ douglaszuqueto β†’ Go Api Boilerplate

douglaszuqueto / Go Api Boilerplate

Licence: mit
Exemplo de API utilizando a linguagem Go e a biblioteca Gorilla Mux

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Go Api Boilerplate

Express Es6 Rest Api
πŸ”‹ Starter project for an ES6 RESTful Express API.
Stars: ✭ 2,401 (+14023.53%)
Mutual labels:  api, boilerplate
Graphql Starter
πŸ’₯ Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI.
Stars: ✭ 3,377 (+19764.71%)
Mutual labels:  api, boilerplate
Express Graphql Mongodb Boilerplate
A boilerplate for Node.js apps / GraphQL-API / Authentication from scratch - express, graphql - (graphql compose), mongodb (mongoose).
Stars: ✭ 288 (+1594.12%)
Mutual labels:  api, boilerplate
Netcore Boilerplate
Boilerplate of API in .NET Core 3.1
Stars: ✭ 166 (+876.47%)
Mutual labels:  api, boilerplate
Koa Rest Api Boilerplate
πŸ’― Boilerplate for Node.js Koa RESTful API application with Docker, Swagger, Jest, CodeCov and CircleCI
Stars: ✭ 420 (+2370.59%)
Mutual labels:  api, boilerplate
Lad
πŸ‘¦ Lad is the best Node.js framework. Made by a former Express TC and Koa team member.
Stars: ✭ 2,112 (+12323.53%)
Mutual labels:  api, boilerplate
Laravel Api Boilerplate
Laravel API Boilerplate | Please consult the Wiki !
Stars: ✭ 300 (+1664.71%)
Mutual labels:  api, boilerplate
Saas Boilerplate
SaaS boilerplate built in Laravel, Bootstrap 4 and VueJs.
Stars: ✭ 152 (+794.12%)
Mutual labels:  api, boilerplate
Go Api Boilerplate
Go Server/API boilerplate using best practices DDD CQRS ES gRPC
Stars: ✭ 373 (+2094.12%)
Mutual labels:  api, boilerplate
Nodejsstarterkit
Starter Kit for Node.js v14.x, minimum dependencies πŸš€
Stars: ✭ 348 (+1947.06%)
Mutual labels:  api, boilerplate
Express Graphql Typescript Boilerplate
A starter kit for building amazing GraphQL API's with TypeScript and express by @w3tecch
Stars: ✭ 163 (+858.82%)
Mutual labels:  api, boilerplate
Postgrest Starter Kit
Starter Kit and tooling for authoring REST API backends with PostgREST
Stars: ✭ 657 (+3764.71%)
Mutual labels:  api, boilerplate
Nodejs Website Boilerplate
A Node.js website boilerplate that satisfies some common website requirements.
Stars: ✭ 154 (+805.88%)
Mutual labels:  api, boilerplate
Rails api base
API boilerplate project for Ruby On Rails 6
Stars: ✭ 172 (+911.76%)
Mutual labels:  api, boilerplate
Express Mongodb Rest Api Boilerplate
A boilerplate for Node.js apps / Rest API / Authentication from scratch - express, mongodb (mongoose).
Stars: ✭ 153 (+800%)
Mutual labels:  api, boilerplate
Flask Api Starter Kit
Start a Flask API in less than 5 minutes
Stars: ✭ 296 (+1641.18%)
Mutual labels:  api, boilerplate
Laravel Hackathon Starter
πŸ’» A hackathon/MVP boilerplate for laravel web applications. Start your hackathons without hassle.
Stars: ✭ 1,589 (+9247.06%)
Mutual labels:  api, boilerplate
Subzero Starter Kit
Starter Kit and tooling for authoring GraphQL/REST API backends with subZero
Stars: ✭ 136 (+700%)
Mutual labels:  api, boilerplate
Koa Vue Notes Api
πŸ€“ This is a simple SPA built using Koa as the backend, Vue as the first frontend, and React as the second frontend. Features MySQL integration, user authentication, CRUD note actions, and async/await.
Stars: ✭ 342 (+1911.76%)
Mutual labels:  api, boilerplate
Beauty Vuejs Boilerplate
❀️ Real world base Vue.js app. Access/refresh tokens auth, api services, http client, vuex modules
Stars: ✭ 583 (+3329.41%)
Mutual labels:  api, boilerplate

GO API boilerplate

Exemplo de arquitetura de API utilizando a linguagem Go

Arquitetura

  • 3 Γ‘reas

    • admin
    • client
    • auth
  • Storage

    • Memory
http
β”œβ”€β”€ api
β”‚   β”œβ”€β”€ admin
β”‚   β”‚   β”œβ”€β”€ api.go
β”‚   β”‚   └── user.go
β”‚   β”œβ”€β”€ auth
β”‚   β”‚   β”œβ”€β”€ api.go
β”‚   β”‚   └── login.go
β”‚   └── client
β”‚       β”œβ”€β”€ api.go
β”‚       └── user.go
β”œβ”€β”€ main.go
β”œβ”€β”€ middleware
β”‚   β”œβ”€β”€ cors.go
β”‚   β”œβ”€β”€ logger.go
β”‚   β”œβ”€β”€ max_client.go
└── utils
    └── handler.go

Endpoints

Admin

Description http path
list GET /api/admin/user
get GET /api/admin/user/:id
store POST /api/admin/user
update PUT /api/admin/user/:id
delete DELETE /api/admin/user/:id

Public

Description http path
list GET /api/user
get GET /api/user/:id

Auth

Description http path
admin POST /api/auth/admin/signin
public POST /api/auth/client/signin

Insomnia

Lista de todas requisiçáes para usar com Insomnia, basta importar :) => link

DependΓͺncias

Build & Deploy

Standalone

  • Build
make prod
  • Deploy
./bin/go-api-boilerplate

Docker

  • Build
make docker
  • Push
make docker-push
  • Deploy
docker run -it --name go-api-boilerplate \
    -p 3000:3000 \
    douglaszuqueto/go-api-boilerplate:latest

ReferΓͺncias

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].