All Projects → 710leo → Toruk

710leo / Toruk

Go web 开发脚手架

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Toruk

Rocket
A web framework for Rust.
Stars: ✭ 15,760 (+20105.13%)
Mutual labels:  framework, web-framework, web-development
Denovel
A Deno Framework For Web Artisan - Inspired by Laravel
Stars: ✭ 128 (+64.1%)
Mutual labels:  framework, web-framework, web-development
Iris
The fastest HTTP/2 Go Web Framework. AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. A true successor of expressjs and laravel | 谢谢 https://github.com/kataras/iris/issues/1329 |
Stars: ✭ 21,587 (+27575.64%)
Mutual labels:  framework, web-framework
Whs.js
🚀 🌪 Super-fast 3D framework for Web Applications 🥇 & Games 🎮. Based on Three.js
Stars: ✭ 5,685 (+7188.46%)
Mutual labels:  framework, web-development
Goyave
🍐 Elegant Golang REST API Framework
Stars: ✭ 811 (+939.74%)
Mutual labels:  framework, web-framework
Kore
Kore (https://kore.io) is an easy to use web application platform for writing scalable web APIs in C. Its main goals are security, scalability and allowing rapid development and deployment of such APIs.
Stars: ✭ 3,477 (+4357.69%)
Mutual labels:  framework, web-development
Gramework
Fast and Reliable Golang Web Framework
Stars: ✭ 354 (+353.85%)
Mutual labels:  framework, web-framework
Javalite
JavaLite is a cohesive collection of frameworks designed from ground up to add pleasure back to your daily life
Stars: ✭ 753 (+865.38%)
Mutual labels:  web-framework, web-development
Sihl
A modular functional web framework
Stars: ✭ 267 (+242.31%)
Mutual labels:  framework, web-framework
Aurelia
Aurelia 2, a standards-based, front-end framework designed for high-performing, ambitious applications.
Stars: ✭ 995 (+1175.64%)
Mutual labels:  framework, web-framework
Alom
Alom is the lighest, simplest framework ever
Stars: ✭ 33 (-57.69%)
Mutual labels:  framework, web-development
Framework
IONDV. Framework is a high level framework for enterprise web applications development.
Stars: ✭ 54 (-30.77%)
Mutual labels:  framework, web-framework
Routing Controllers
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage in Express / Koa using TypeScript and Routing Controllers Framework.
Stars: ✭ 3,557 (+4460.26%)
Mutual labels:  framework, web-framework
Mini.css
A minimal, responsive, style-agnostic CSS framework!
Stars: ✭ 2,938 (+3666.67%)
Mutual labels:  framework, web-development
Vapor
💧 A server-side Swift HTTP web framework.
Stars: ✭ 21,194 (+27071.79%)
Mutual labels:  framework, web-framework
Shio Rs
Shio is a fast, simple, and asynchronous micro web-framework for Rust.
Stars: ✭ 276 (+253.85%)
Mutual labels:  framework, web-framework
Thruster
A fast, middleware based, web framework written in Rust
Stars: ✭ 671 (+760.26%)
Mutual labels:  web-framework, web-development
Best Of Web Python
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
Stars: ✭ 1,118 (+1333.33%)
Mutual labels:  framework, web-development
framework
Cygnite PHP Framework- A Modern Toolkit For Web Developers
Stars: ✭ 43 (-44.87%)
Mutual labels:  web-development, web-framework
nardis
A small web framework based on ASGI
Stars: ✭ 14 (-82.05%)
Mutual labels:  web-development, web-framework

Toruk

go web 开发脚手架

主要由下面几个第三方库集成,简单、灵活,可以快速开发web项目

  • 路由:github.com/gorilla/mux
  • 渲染模板:github.com/unrolled/render
  • Cookie封装:github.com/gorilla/securecookie
  • 中间件:github.com/codegangsta/negroni
  • 上下文传输:github.com/gorilla/context

文件结构

图片描述

使用方法

通过修改http/ruote.go 将数据传到对应的handler中,然后在通过render将数据返回回去。 ruote.go

func configConfRoutes(r *mux.Router) {
	r.HandleFunc("/home", handler.HomeIndex).Methods("GET")
}

handler.go

func HomeIndex(w http.ResponseWriter, r *http.Request) {
	render.HTML(r, w, "home/index")
}

初始化

# set $GOPATH and $GOROOT
# 比如你的项目名称叫做 awosome
cd $GOPATH/src
git clone https://github.com/710leo/Toruk.git
mv Toruk awosome
cd awosome
./init awosome
go get ./...

编译&运行

./control build
./control start

答疑

交流QQ群:173502733

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].