resqiar / synapsis_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Important Note

  • Not finished (I deeply apologize for this but I don't have enough time ATM to complete the mvp)

Clean Code Architecture

Architecture

Tech Stacks

  • Server -> Go:Fiber
  • Database -> SQLite
  • ORM -> GORM

why use ORM? to save time.

Installation

  • Clone the Repo
git clone https://github.com/resqiar/synapsis_test.git
  • Install packages
go mod tidy
  • Run the Server
go run main.go

API Documentations

Register User

POST /auth/register

Body

{
	username string, // required, min=3, max=100
	password string, // required, min=8, max=100"`
}

Possible Return

200, 500 Status
{
    "error": string,
}

Create Product

POST /product/create

Body

{
	Title       string // required, min=3, max=100"`
	Description string // max=100
	ImageURL    string // url
}

Possible Return

200, 500 Status
{
    "error": string,
}

Create Category

POST /category/create

Body

{
	Title       string // required, min=3, max=100"`
	Description string // max=100
}

Possible Return

200, 500 Status
{
    "error": string,
}

About


Languages

Language:Go 100.0%