BASE_URL : http://<ip_address>:3000/api/v1/ BASE_PORT : 3000
app.Get("/", status)
//API status
//TODO: Edit Endpoints
BASE_URL:3000/api/v1/product
BASE_URL:3000/api/v1/product/:id
BASE_URL:3000/api/v1/product/barcode/:id
BASE_URL:3000/api/v1/product/category/:id
BASE_URL:3000/api/v1/product/:id
BASE_URL:3000/api/v1/product/new
BASE_URL:3000/api/v1/repair
BASE_URL:3000/api/v1/repair/:id
BASE_URL:3000/api/v1/repair/status/:id
BASE_URL:3000/api/v1/repair/:id
BASE_URL:3000/api/v1/repair/new
BASE_URL:3000/api/v1/store
BASE_URL:3000/api/v1/store/:id
BASE_URL:3000/api/v1/store/:id
BASE_URL:3000/api/v1/store/new
BASE_URL:3000/api/v1/category
BASE_URL:3000/api/v1/category/:id
BASE_URL:3000/api/v1/category/:id
BASE_URL:3000/api/v1/category/new
Repo clone sonrası aşağıdakileri çalıştır.
mkdir boss-stock
cd boss-stock
go mod init boss-stock
go get -u github.com/gofiber/fiber/v2
go get -u github.com/mattn/go-sqlite3
go get -u gorm.io/gorm
go get -u gorm.io/driver/sqlite
go run main.go