Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsha256/packer
https://github.com/dsha256/packer
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dsha256/packer
- Owner: dsha256
- Created: 2023-11-08T20:03:02.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T00:34:07.000Z (2 months ago)
- Last Synced: 2024-08-28T01:45:07.905Z (2 months ago)
- Language: Go
- Size: 57.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Packer Service API 🚀
---
# 🤷♀️ What does the API do?
### Imagine for a moment that one of your product lines ships in various pack sizes:
• 250 Items
• 500 Items
• 1000 Items
• 2000 Items
• 5000 Items### Your customers can order any number of these items through your website, but they will always only be given complete packs.
1. Only whole packs can be sent. Packs cannot be broken open.
2. Within the constraints of Rule 1 above, send out no more items than necessary to
fulfil the order.
3. Within the constraints of Rules 1 & 2 above, send out as few packs as possible to
fulfil each order.#### `So, the API can calculate the number of packs we need to ship to the customer.`
---
# 👀 Run locally
### Navigate to the root folder of the project and run
```shell
docker compose up
```
### Then you get the API running on your local machine on port 8080:
* #### API - http://127.0.0.1:8080---
# 🔥 Want to give it a shot?
### Please go to the docs page where you can test the functionality out in real time.