Skip to content

andhikagama/os-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-api

Simple Online Store API

Prerequisite

  • Golang - Go Programming Language
  • Echo - HTTP Framework
  • Gomod - Modules Management

Install Modules

Run go mod tidy to install dependencies required that state on go.mod

Make sure you have go v11 or above installed

Run Migration

Run make migrate or go run main.go migrate

Development server

Run make run or go run main.go for a dev server. Navigate to http://localhost:7723/.

Run Test

Run make test or go clean -testcache && go test ./... | grep -v 'no test files'.

Build

Run make build or go build -o os-api.

Case

  • order cancelled due to mismatch (negative) qty

Proposed Solution

  • use unsigned data type for qty

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages