Microservices for dreamkast built on Service Weaver.
- Docker
- Docker Compose
- Service Weaver
Run the dev container and database:
docker-compose -f dev/compose.yaml up -d
Access http://localhost:8080
then you can perform tests with a graphiql UI.
Dev app container supports live-reloading since it is running on air.
You don't need to rebuild the container image except for the case go.mod
updated.
Dreamkast-weaver is built on Service Weaver, so you can try multi-deploy mode using weaver CLI.
- single deploy
DB_ENDPOINT=127.0.0.1 DB_PORT=13306 DB_USER=user DB_PASSWORD=password go run ./cmd/serve/main.go
weaver single status
- multi deploy
make build
weaver multi deploy weaver.toml
weaver multi status
For more information about weaver, see serverweaver.dev.