Skip to content

wate123/ming_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ming Kitchen Backend

This project is using Go, Gin, Graphql.

Frontend Design

Environment Prepare

  • Go (version 1.12+ is required)
  • Gin go get -u github.com/gin-gonic/gin
  • Gorm go get -u gorm.io/gorm

API Design

Sales Stats

  • getAllSalesStats
    • today
    • difference between today and yesterday
    • difference between this year today and last year today
    • this year total
    • profit
  • getSalesByDate (support date range)

Cost Stats

  • getAllCostStats
    • this month
    • difference between this month and last month
    • total cost
  • addCost
    • amount
    • type of cost
    • date

Uber Eats

  • getUberSalesStats
    • today
    • difference between today and yesterday
    • difference between this year today and last year today
    • this year total
    • profit
  • getAllErrorOrder (DESC order by date)
    • order id
    • amount

User (keep it until other finished)

  • login
  • register
  • token management
    • renew token
    • expire token

About

Go server with mysql, graphql, gin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages