10000 GitHub - yearnming/gin-naiveui: 全栈项目,后端:golang+gin,数据库:postgres ,前端:naive+vue
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ gin-naiveui Public template
forked from hotuns/gin-naiveui

全栈项目,后端:golang+gin,数据库:postgres ,前端:naive+vue

Notifications You must be signed in to change notification settings

yearnming/gin-naiveui

 
 

Repository files navigation

gin-naiveui

ui

本地运行

使用 docker 运行

修改 .env 文件数据库连接参数

DB_PORT=5432
DB_USER=example_user
DB_PASSWORD=example_password
DB_NAME=ginnaive
SECRET=example_secret
docker compose up

docker中会启动一个数据库,然后把当前golang项目都打包进容器里面运行。

在 Dockerfile 中使用了 github.com/air-verse/air@latest 这个库。 修改 golang 代码之后无需重启,可以热更新。

如果数据库中没有文件,那么会自动创建初始化数据。

运行前端
cd vue-naive-admin && pnpm install && pnpm run dev

About

全栈项目,后端:golang+gin,数据库:postgres ,前端:naive+vue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 53.8%
  • JavaScript 26.2%
  • Go 17.7%
  • CSS 1.1%
  • SCSS 0.6%
  • HTML 0.5%
  • Dockerfile 0.1%
0