Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gohouse/gorosegin
gorose + gin demo,半小时快速上手golang web编程之用户的增删改查(示例代码)
https://github.com/gohouse/gorosegin
gin go-orm go-web golang gorose gorose-gin gorose-gin-demo orm
Last synced: 2 months ago
JSON representation
gorose + gin demo,半小时快速上手golang web编程之用户的增删改查(示例代码)
- Host: GitHub
- URL: https://github.com/gohouse/gorosegin
- Owner: gohouse
- Created: 2018-11-01T13:08:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T01:55:25.000Z (about 5 years ago)
- Last Synced: 2024-10-08T15:09:27.430Z (3 months ago)
- Topics: gin, go-orm, go-web, golang, gorose, gorose-gin, gorose-gin-demo, orm
- Language: HTML
- Homepage: https://segmentfault.com/a/1190000020871866
- Size: 53.7 KB
- Stars: 19
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 半小时快速上手golang web编程之用户的增删改查(示例代码)
博客教程页面: https://segmentfault.com/a/1190000020871866
在线体验地址: [http://gorose-gin.fizzday.net:8080/](http://gorose-gin.fizzday.net:8080/)## 说明
本实例快速实现一个用户的增删改查, 采用前后端分离模式, 后端采用`gorose orm` + `gin`框架完成api的开发, 前端使用`原生html+jquery+ajax`交互数据.## 安装和启动
- 手动
```shell script
git clone https://github.com/gohouse/goroseGin.git
cd goroseGin
go mod tidy
go run main.go
```
> 注意: 确保系统已经安装了golang运行环境和vgo,才能正常执行- docker
```shell script
docker run -d -it --rm -p 8080:8080 ababy/gorose-gin sh -c "go run main.go"
```> 注意: 手动和docker, 两种方案, 二选其一即可, 建议使用docker运行, 一键运行, 不需要处理环境问题
## 运行查看效果
访问 [http://localhost:8080](http://localhost:8080) ,就可以完成用户的增删改查操作了,效果图
![gorose-gin.png](https://i.loli.net/2019/10/31/B7wkU8XYS6OIRdH.jpg)