This project for solution Toko Ijah.
Board this project https://trello.com/b/DLofC4BT/sorabel
- Go version go1.12.6 darwin/amd64
- Glide
- sqlite
- This app run on PORT 8000
request
|
app.go --> routing
|
handler
|
model --> Database
|
handler and response
git clone https://github.com/yudapc/sorabel.git
glide install
go run app.go
- OSX:
chmod +x start-osx.sh
- Linux:
chmod +x start-linux.sh
- OSX:
./start-osx.sh
- Linux:
./start-linux.sh
- OSX:
make sorabel-osx
- Linux:
make sorabel-linux
- OSX:
./sorabel-osx
- Linux:
./sorabel-linux
You can import file collections to postman for testing each endpoint with sample payload:
https://github.com/yudapc/sorabel/blob/master/Sorabel.postman_collection.json
GET /items
GET /items/:id
POST /items
PUT /items/:id
DELETE /items/:id
POST /items/import
GET /items/export
GET /purchases
GET /purchases/:id
GET /purchases/:id/items
POST /purchases
PUT /purchases/:id
DELETE /purchases/:id
POST /purchases/import
GET /purchases/export
GET /sales
GET /sales/:id
GET /sales/:id/items
POST /sales
PUT /sales/:id
DELETE /sales/:id
POST /sales/import
GET /sales/export