Example Golang API backend rest implementation mini project Point Of Sale using Gin Framework and Gorm ORM Database.

Overview

Golang Point Of Sale

Example Golang API backend rest implementation mini project Point Of Sale using Gin Framework and Gorm ORM Database.

Command

  • App Lifecyle

$ go run main.go || make go run
  • Docker Lifecycle

$ docker-compose up -d --build

Endpoint

Nama Route Method
User
/api/v1/auth/ping GET
/api/v1/auth/register POST
/api/v1/auth/login POST
Merchant
/api/v1/merchant/ping GET
/api/v1/merchant POST
/api/v1/merchant GET
/api/v1/merchant/:id GET
/api/v1/merchant/:id DELETE
/api/v1/merchant/:id UPDATE
Outlet
/api/v1/outlet/ping GET
/api/v1/outlet POST
/api/v1/outlet GET
/api/v1/outlet/:id GET
/api/v1/outlet/:id DELETE
/api/v1/outlet/:id PUT
Customer
/api/v1/outlet/ping GET
/api/v1/customer POST
/api/v1/customer GET
/api/v1/customer/:id GET
/api/v1/customer/:id DELETE
/api/v1/customer/:id PUT
Product
/api/v1/product/ping GET
/api/v1/product POST
/api/v1/product GET
/api/v1/product/:id GET
/api/v1/product/:id DELETE
/api/v1/product/:id PUT
Role
/api/v1/role/ping GET
/api/v1/role POST
/api/v1/role GET
/api/v1/role/:id GET
/api/v1/role/:id DELETE
/api/v1/role/:id PUT
Supplier
/api/v1/supplier/ping GET
/api/v1/supplier POST
/api/v1/supplier GET
/api/v1/supplier/:id GET
/api/v1/supplier/:id DELETE
/api/v1/supplier/:id PUT
Transaction
/api/v1/transaction/ping GET
/api/v1/transaction POST
/api/v1/transaction GET
/api/v1/transaction/:id GET
/api/v1/transaction/:id DELETE
/api/v1/transaction/:id PUT
You might also like...
REST Layer, Go (golang) REST API framework
REST Layer, Go (golang) REST API framework

REST Layer REST APIs made easy. REST Layer is an API framework heavily inspired by the excellent Python Eve. It helps you create a comprehensive, cust

Umeshu is a mini web framework written by Golang.

Umeshu Umeshu is a mini web framework written by Golang. Purpose Why do I reinvent the wheel? Just for learning. 😊 Building a mini web framework from

GOLF(Go Light Filter), golf dependents Gorm and Gin.

GOLF (WIP) GOLF(Go Light Filter), golf dependents Gorm and Gin. golf can help you build model query as fast as,build model query like Django Rest Fram

Template/Starter code for Go application with Gin, System Tray, Gorm, Air, Swagger, JWT

gin-systray-starter Starter code for Go application with Gin, System Tray, Gorm, Air, Swagger, JWT systray, https://github.com/getlantern/systray gin,

Simple web framework for go, still quite beta at this point

WFDR Framework - Beta Release New 18/Feb/2012: Updated for go 1.0, new directory layout to take advantage of the go build tool. Background There's a m

It took me a while to figure out how I can use GraphQL with the ent ORM and serve the GraphQL endpoint via the Echo framework

Go + Graphql + Ent + Echo Boilerplate It took me a while to figure out how I can use GraphQL with the ent ORM and serve the GraphQL endpoint via the E

Opinionated Go starter with gin for REST API, logrus for logging, viper for config with added graceful shutdown

go-gin-starter An opinionated starter for Go Backend projects using: gin-gonic/gin as the REST framework logrus for logging viper for configs Docker f

go gin rest api

go-gin-rest-api-f1 go-gin-rest-api Tutorial from: https://golang.org/doc/tutorial/web-service-gin I just used F1 Drivers. go get . to get gin go run .

gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具
gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具

中文文档 Automatic parameter binding base on go-gin doc Golang gin automatic parameter binding Support for RPC automatic mapping Support object registrati

Owner
Restu Wahyu Saputra
A bright future will come, just waiting times, someday I will definitely become a software engineer
Restu Wahyu Saputra
A REST web-service sample project written in Golang using go-fiber, GORM and PostgreSQL

backend A REST web-service sample project written in Golang using go-fiber, GORM and PostgreSQL How to run Make sure you have Go installed (download).

Omid Hojabri 27 Nov 9, 2022
Project template for creating an RESTful webservice in Go, with relational database backend & example content.

gofound-restful Project template for creating an RESTfull webservice in Go, with relational database backend and example content. Used packages github

Bart 0 Sep 22, 2022
mini json response for rest api

You will avoid commands below defining every time in services. resp := Response{ Code: responseCode, Message: msg, Data: data, } http.ResponseWriter.W

Nijat Shahverdiev 1 Dec 7, 2021
Go Fiber Boilerplate with Gorm ORM

Go Fiber Boilerplate with Gorm ORM This boilerplate app is using Go version 1.17 because I think for now this is the most updated release. Installatio

Muhammad Iqbal 2 Jul 30, 2022
golang crud restful api with gorm , gin and mysql DB

crud restful api with golang , gorm , gin and mysql this api does a simple CRUD operations on a single table mysql Database . this is build on top off

Brahim Bessrour 14 Feb 26, 2022
Building basic API with go, gin and gorm

Project Description Terima kasih sudah berkunjung ke halaman repositori ini, repositori ini berisi basic RESTFUL API dengan menggunakan teknologi seba

dev-beard 1 Nov 20, 2021
REST api using fiber framework written in golang and using firebase ecosystem to authentication, storage and firestore as a db and use clean architecture as base

Backend API Example FiberGo Framework Docs : https://github.com/gofiber Info This application using firebase ecosystem Firebase Auth Cloud Storage Fir

Atilla Pehlivan 3 May 31, 2022
Swagger + Gin = SwaGin, a web framework based on Gin and Swagger

Swagger + Gin = SwaGin Introduction SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and req

long2ice 56 Nov 26, 2022
Swagger + Gin = SwaGin, a web framework based on Gin and Swagger

Swagger + Gin = SwaGin Introduction SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and req

long2ice 56 Nov 26, 2022
An example implementation of a REST interface in Golang using primarily the standard library.

REST API in Golang This is an example REST API implementation using primarily the standard library. The exceptions are as follows. github.com/gorilla/

Daniel 0 Jan 22, 2022