- Not finished (I deeply apologize for this but I don't have enough time ATM to complete the mvp)
- Server -> Go:Fiber
- Database -> SQLite
- ORM -> GORM
why use ORM? to save time.
- Clone the Repo
git clone https://github.com/resqiar/synapsis_test.git
- Install packages
go mod tidy
- Run the Server
go run main.go
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,
}
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,
}
POST /category/create
Body
{
Title string // required, min=3, max=100"`
Description string // max=100
}
Possible Return
200, 500 Status
{
"error": string,
}