Skip to content

dsha256/packer-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Install Encore(https://encore.dev/docs/install), navigate to the root folder of the project and run

encore run

Then you get two endpoints:


🌩️ Run on the cloud (AWS/GCP)

You just need to creat Encore app, connect it to your cloud account and deploy the app in few straightforward clicks: https://encore.dev/docs/deploy/deploying


🔥 Want to give it a shot?

Please go to the docs page where you can test the functionality out in real time.

Theneo