Skip to content

Commit

Permalink
chore: Update module paths for autocoffee components
Browse files Browse the repository at this point in the history
  • Loading branch information
qjoly committed Sep 18, 2024
1 parent 48031d4 commit f5db091
Show file tree
Hide file tree
Showing 31 changed files with 23 additions and 476 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ go.work.sum
\#**#

**.db
seed.txt
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# coffee-shop
# AutoCoffee - a NATS based microservices demo

This is a simple demo of a microservices architecture using NATS as the messaging system. The demo is based on a "coffee shop" scenario where clients can order coffee in an automated way.

# Architecture

The demo consists of the following components:
- `routes` - a service that exposes a web interface for clients to order coffee.
- `controller` - a service that receives the orders from the `routes` service, check the stock (using the `stock` service) and send the order to `coffee-makers` services.
- `stock` - a service that keeps track of the stock of coffee beans in a database.
- `coffee-makers` - a service that receives the orders from the `controller` service and makes the coffee. The service updates the stock in the `stock` service when an order is completed.

# Running the demo

You will need to have a NATS server running.
2 changes: 1 addition & 1 deletion coffee-maker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.8'
services:
coffee-makers:
image: ghcr.io/une-tasse-de-cafe/coffee-shop/coffeemakers:latest
image: ghcr.io/une-tasse-de-cafe/autocoffee/coffeemakers:latest
build: .
environment:
- "NATS_URL=192.168.128.51:4222"
Expand Down
2 changes: 1 addition & 1 deletion coffee-maker/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/qjoly/coffee-shop/coffee-maker
module github.com/qjoly/autocoffee/coffee-maker

go 1.22.5

Expand Down
2 changes: 1 addition & 1 deletion controller/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.8'
services:
routes:
image: ghcr.io/une-tasse-de-cafe/coffee-shop/controller:latest
image: ghcr.io/une-tasse-de-cafe/autocoffee/controller:latest
build: .
environment:
- "NATS_URL=192.168.128.51:4222"
2 changes: 1 addition & 1 deletion controller/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/une-tasse-de-cafe/coffee-shop/controller
module github.com/une-tasse-de-cafe/autocoffee/controller

go 1.22.6

Expand Down
2 changes: 1 addition & 1 deletion routes/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.8'
services:
routes:
image: ghcr.io/une-tasse-de-cafe/coffee-shop/routes:latest
image: ghcr.io/une-tasse-de-cafe/autocoffee/routes:latest
build: .
ports:
- 8080:8080
2 changes: 1 addition & 1 deletion routes/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/une-tasse-de-cafe/coffee-shop/routes
module github.com/une-tasse-de-cafe/autocoffee/routes

go 1.21.6

Expand Down
13 changes: 0 additions & 13 deletions samples/betterSub/go.mod

This file was deleted.

12 changes: 0 additions & 12 deletions samples/betterSub/go.sum

This file was deleted.

32 changes: 0 additions & 32 deletions samples/betterSub/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions samples/microService/go.mod

This file was deleted.

12 changes: 0 additions & 12 deletions samples/microService/go.sum

This file was deleted.

48 changes: 0 additions & 48 deletions samples/microService/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions samples/queueGroup/go.mod

This file was deleted.

12 changes: 0 additions & 12 deletions samples/queueGroup/go.sum

This file was deleted.

28 changes: 0 additions & 28 deletions samples/queueGroup/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions samples/request/go.mod

This file was deleted.

12 changes: 0 additions & 12 deletions samples/request/go.sum

This file was deleted.

40 changes: 0 additions & 40 deletions samples/request/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions samples/simplePub/go.mod

This file was deleted.

12 changes: 0 additions & 12 deletions samples/simplePub/go.sum

This file was deleted.

27 changes: 0 additions & 27 deletions samples/simplePub/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions samples/simpleSub/go.mod

This file was deleted.

Loading

0 comments on commit f5db091

Please sign in to comment.