A RESTful e-commerce API built with Go and SQLite. Clean architecture, minimal dependencies and CORS enabled.
- Product management (CRUD)
- Order management
- SQLite database
- CORS enabled
- Clean architecture with packages
| Method | Path | Description |
|---|---|---|
| GET | /products |
List all products |
| POST | /products |
Create a product |
| GET | /products/:id |
Get a product |
| PUT | /products/:id |
Update a product |
| DELETE | /products/:id |
Delete a product |
| GET | /orders |
List all orders |
| POST | /orders |
Create an order |
go mod tidy
go run main.goThe API will be available at http://localhost:8080.
- Go
- SQLite
- net/http (stdlib)
MIT