GO CATALOG is REST API written in Golang, can use multiple database, but now only available for MySQL. You can see frontend application which consumed this API in https://github.com/gedelumbung/react-catalog.
-
Create database with name
db_catalogand importdb_catalog.sql. Adjust database config with your own local environment (inside.envfile). -
To run this project, you must be place this project under
$GOROOTpath, for example, my$GOROOTis inside/Users/lumbung/Documents/Go, so this project must be located in/Users/lumbung/Documents/Go/src/github.com/gedelumbung/go-catalog. -
Install all dependencies, run
dep ensure. Rungo run main.gofrom root application directory to start application
`GET`/v1/ping
`GET`/v1/products
`GET`/v1/products/:id
`GET`/v1/products/:id/images/:image_id
`POST`/v1/products
`DELETE`/v1/products/:id