Reseller

module
v0.0.0-...-ebdf8ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT

README

Reseller

Management Sales https://github.com/YogiTan00/Reseller

Prerequisites
  1. Golang (v1.21 or Above)
  2. Mysql Database
  3. Protobuf Compiler
  4. Buf
  5. Mockery
Grpc
  1. Sync Go Modules -> go mod tidy
  2. Download GRPC Ecosystem Nodules ->
    go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
    go get google.golang.org/protobuf/cmd/protoc-gen-go
    go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
  3. Install GRPC Ecosystem Modules ->
    go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
    go install google.golang.org/protobuf/cmd/protoc-gen-go
    go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
Migration Mysql
  1. Download and Install Golang-Migrate -> https://github.com/golang-migrate/migrate/tree/master/cmd/migrate
  2. Migrate Up Service (Optional) ->
    migrate -database "mysql://root:root@tcp(localhost:3306)/reseller" -path services/migrations/mysql up
  3. Create New Migration (Optional) ->
    migrate create -ext sql -dir services/migrations/mysql create_product
Commit Message
  1. Feat: Add Feature
  2. Fix: Fixing Fiture
  3. Test: Make or Increased Unitest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL