https://github.com/garybake/scala_cart
https://github.com/garybake/scala_cart
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/garybake/scala_cart
- Owner: garybake
- Created: 2025-08-18T18:35:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-18T18:47:47.000Z (11 months ago)
- Last Synced: 2025-08-18T20:40:42.075Z (11 months ago)
- Language: Scala
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Scala Cart
[](https://github.com/garybake/scala_cart/actions/workflows/ci.yml)
Technical assignment to build a shopping basket in scala.
### Domain
- Product - Item in the shop for sale identified by sku.
- Catalog - Set of distinct products available at the store.
- Basket - A list of products intended to be purchased.
- Offer - A discount on products i.e. 10% off apples.
- Receipt - Combination of Basket and offers to provide a final price.
### Requirements
Ensure you have scala 3 and sbt installed.
### Usage
sbt "run Apples Apples Soup"
Add in as many products as needed.
Current products are Apples, Milk, Bread and Soup
### Development
Project was created using
sbt new scala/scala3.g8
Test
sbt test