Bit BasketA market stall, as an API.
The back end for an online fruit shop: accounts, wallets, offers, carts and checkout.
- Status
- Archived · 2026
- Sign-in
- One-time code
- Payments
- Wallet · Card
- Since
- 2025
- Built with
- Java · Spring Boot · Kafka
cat why.md
Why it exists
Selling fruit online takes more than a product list. Shoppers need trustworthy accounts, a wallet to pay from, offers that apply themselves and a cart that doesn't hold stock forever. Bit Basket is the service behind all of that.
Confirmed by one-time code
Sign-up and login are verified with a one-time code that expires after a minute.
Offers that apply themselves
Set a percentage discount or a buy-some-get-some-free deal on any fruit and the cart works out the price.
Wallet, referrals, tidy carts
Pay from a wallet or card, reward referrals, and release stock from carts left idle for 30 minutes.
cat BUILD.md
How it's built
~/work/bit-basket/BUILD.md
- Spring Boot on MySQL, with Redis holding the one-time codes.
- Kafka events carry sign-ups and wallet transactions to separate listeners for referrals and notifications, which go out by email or SMS according to each user's preference.
- JWT secures the API with separate customer and admin roles, and unit and integration tests cover the services and controllers.
# stack
- Java
- Spring Boot
- MySQL
- Redis
- Kafka
- JWT
- JUnit
- Docker Compose