Giter Site home page Giter Site logo

vivicai / gorosegin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gohouse/gorosegin

0.0 0.0 0.0 55 KB

gorose + gin demo,半小时快速上手golang web编程之用户的增删改查(示例代码)

Home Page: https://segmentfault.com/a/1190000020871866

Go 35.72% HTML 64.28%

gorosegin's Introduction

半小时快速上手golang web编程之用户的增删改查(示例代码)

博客教程页面: https://segmentfault.com/a/1190000020871866
在线体验地址: http://gorose-gin.fizzday.net:8080/

说明

本实例快速实现一个用户的增删改查, 采用前后端分离模式, 后端采用gorose orm + gin框架完成api的开发, 前端使用原生html+jquery+ajax交互数据.

安装和启动

  • 手动
git clone https://github.com/gohouse/goroseGin.git
cd goroseGin
go mod tidy
go run main.go

注意: 确保系统已经安装了golang运行环境和vgo,才能正常执行

  • docker
docker run -d -it --rm -p 8080:8080 ababy/gorose-gin sh -c "go run main.go"

注意: 手动和docker, 两种方案, 二选其一即可, 建议使用docker运行, 一键运行, 不需要处理环境问题

运行查看效果

访问 http://localhost:8080 ,就可以完成用户的增删改查操作了,效果图
gorose-gin.png

gorosegin's People

Contributors

fizzday avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.