Repository files navigation
backend: gin
frontend: vue
install golang
install nodejs and npm
cd frontend && npm install
install nodemon via npm
install mysql
install redis
bash ./go_generate.sh
bash ./devrun.sh
cd frontend && npm run serve
📁 gin-vue-template
📁 cmd
📄 main.go // program entry
📁 conf
📄 app.yaml // some configuration items of course
📁 config // read configuration item from conf/app.ini
📁 pkg
📁 constants // some constants
📁 e // errcode
📁 infra
📁 redis // redis
📁 logger // init logrus and impl some function for log
📁 logic // do some logic for your api
📁 models // connecting to db
📄 ... // some models and DAO functions
📁 service // http service provider for wire gen
📁 utils // maybe put some utils here
📁 wire // wire
📁 routers
📁 api // yep, http api
📁 middleware // middleware for gin
📄 init_middleware.go // initialize, generate logid for example
📄 auth_middleware.go // authorize, abort if unauthorized
📄 router.go // router definition
📁 frontend // vue proj
You can’t perform that action at this time.