microservice mall based on goframe and dapr
docker-compose -f docker-compose-dev.yml up -d
cd /root/project/mall-gf-dapr/src/app/user && gf run main.go
cd /root/project/mall-gf-dapr/src && gf gen dao --path ./app/user -l "mysql:root:12345678@tcp(db:3306)/user"
cd /root/project/mall-gf-dapr/src/app/template && gf run main.go
cd /root/project/mall-gf-dapr/src/app/product && gf run main.go
cd /root/project/mall-gf-dapr/src && gf gen dao --path ./app/product -l "mysql:root:12345678@tcp(db:3306)/product"
clear && cd /root/project/mall-gf-dapr/src/app/product && dapr run --app-port 28001 --app-id product --dapr-grpc-port 3500 -- gf run main.go
cd /root/project/mall-gf-dapr/src/app/product/api && protoc --go_out=./ product.proto
cd /root/project/mall-gf-dapr/src/app/order && gf run main.go
cd /root/project/mall-gf-dapr/src && gf gen dao --path ./app/order -l "mysql:root:12345678@tcp(db:3306)/order"
clear && cd /root/project/mall-gf-dapr/src/app/order && dapr run --app-port 28002 --app-id order --dapr-grpc-port 3501 -- gf run main.go
cd /root/project/mall-gf-dapr/src && gf gen dao --path ./app/pay -l "mysql:root:12345678@tcp(db:3306)/pay"
clear && cd /root/project/mall-gf-dapr/src/app/pay && dapr run --app-port 28003 --app-id pay --dapr-grpc-port 3502 -- gf run main.go
dapr dashboard
clear && cd /root/project/mall-gf-dapr/src/mall-js-sdk && node main.js
create database: casdoor
./src/script/casdoor/init.sql
https://learnku.com/articles/64567
https://github.com/nivin-studio/go-zero-mall
- casdoor http://localhost:18000
- apisix
- user
- product http://localhost:8001
- order http://localhost:8002
- pay http://localhost:8003