【文件属性】:
文件名称:go_gorilla:使用 gorilla 测试 go webapp
文件大小:1.06MB
文件格式:ZIP
更新时间:2021-07-03 18:33:40
JavaScript
转到 Web 应用程序
使用来自工具包
$git clone #service mysqld start $mysql -u root -p
创建数据库世界; 用户世界; 源world_mysql.sql;
用户:演示 密码:演示
显示登录页面(模板)
认证
在 ORM 中获取记录
在 HTML/模板中显示数据
提供静态页面(JS/Angular 应用程序)
提供 JSON CRUD
全部 GET PUT POST DELETE
以 JSON/Angular 显示数据
【文件预览】:
go_gorilla-master
----main.go(2KB)
----views()
--------auth()
--------countrycontroller()
--------world()
--------ol_login.tpl(1KB)
--------index.tpl(2KB)
----world_mysql.sql(388KB)
----controllers()
--------CountryController.go(891B)
----world_mysql.sql.gz(90KB)
----README.md(485B)
----static()
--------img()
--------js()
--------fonts()
--------css()