Skip to content

Latest commit

 

History

History

gomall

Gomall

中文

This is a teaching project for newbie using CloudWeGo

Technology Stack

technology introduce
cwgo -
kitex -
bootstrap Bootstrap is a powerful, feature-packed frontend toolkit. Build anything—from prototype to production—in minutes.
Hertz -
MySQL -
Redis -
ES -
Prometheus -
Jaeger -
Docker -

Biz Logic

  • The pages check auth
  • Register
  • Login
  • Logout
  • Product categories
  • Products
  • Add to cart
  • The number badge of cart products
  • Checkout
  • Payment
  • Orders center

How to use

Prepare

List required

  • Go
  • IDE / Code Editor
  • Docker
  • cwgo
  • kitex go install github.com/cloudwego/kitex/tool/cmd/kitex@latest
  • Air
  • ...

Clone code

git clone ...

Copy .env file

make init

Note:You must generate and input SESSION_SECRET random value for session

Download go module

make tidy

Start Docker Compose

make env-start

if you want to stop their docker application,you can run make env-stop.

Run Service

This cmd must appoint a service.

Note: Run the Go server using air. So it must be installed

make run svc=`svcName`

View Gomall Website

make open-gomall

Check Registry

make open-consul

Make Usage

make

Contributors