https://github.com/braulio94/datacaixa
PoS mobile client and backend
https://github.com/braulio94/datacaixa
backend firebird firebirdsql go golang restful-api
Last synced: about 2 months ago
JSON representation
PoS mobile client and backend
- Host: GitHub
- URL: https://github.com/braulio94/datacaixa
- Owner: braulio94
- Created: 2020-01-24T05:31:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T10:07:58.000Z (about 5 years ago)
- Last Synced: 2025-03-21T01:34:29.522Z (about 2 months ago)
- Topics: backend, firebird, firebirdsql, go, golang, restful-api
- Language: Dart
- Homepage:
- Size: 315 KB
- Stars: 25
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Datacaixa
PoS mobile client [(flutter)](https://flutter.dev) and backend [(Go)](https://golang.org) consuming FirebirdSql Database and exposing in REST
## Up and Running
This project uses an existing and pre-populated database that can be found [here]()
- Make sure you have [Golang](https://golang.org) installed
- Download th firbirdsql database file.
- Make sure your database connection url string is pointing to the same directory where the database file is
-## API
#### Clients
Name | Method | URL | Params |
|---------------|----------|----------------|--------------------|
| GetClients |```GET``` | ```/api/clients``` | ```page={number}``` |
|SearchClientsByName|```GET``` | ```/api/clients/search/{name}``` | |
|GetClient|```GET``` | ```/api/client/{id}``` | |#### Orders
|Name | Method | URL | Params |
|---------------|----------|----------------|--------------------|
|GetOrder|```GET``` | ```/api/order/{id}?``` | ```withItems={condition}``` |
|GetOpenOrders|```GET``` | ```/api/orders``` | |
|GetOrderItems|```GET``` | ```/api/order/{id}/items``` | |
|CreateOrder|```PUT``` | ```/api/order``` | |
|CreateOrderItem|```PUT``` | ```/api/order/{id}/item``` | |
|GetItem|```GET``` | ```/api/item/{id}``` | |#### Products
|Name | Method | URL | Params |
|-----------------|----------|----------------|--------------------|
|GetProductsByGroup|```GET``` | ```/api/products/{groupId}``` | ```page={number}``` |
|GetProductsInOrder|```GET``` | ```/api/products``` | ```page={number} orderBy={order}``` |
|SearchProductsByName|```GET``` | ```/api/products/search/{description}``` | |
|GetSingleProduct|```PUT``` | ```/api/product/{id}``` | |
|GetProductGroups|```PUT``` | ```/api/groups/{groupId}``` | |#### Users
|Name | Method | URL | Params |
|----------|----------|----------------|--------------------|
|GetUsers |```GET``` | ```/api/users``` | |
|GetUser |```GET``` | ```/api/user/{id}``` | |
|Login |```POST``` | ```/api/user/login``` | |