aisk / Vox
Licence: mit
Simple and lightweight Go web framework inspired by koa
Stars: ✭ 74
Projects that are alternatives of or similar to Vox
Trafficlight
🚦 Flexible NodeJS Routing Decorators for API Routing
Stars: ✭ 69 (-6.76%)
Mutual labels: express, koa
Koa2 Api Scaffold
一个基于Koa2的轻量级RESTful API Server脚手架。
Stars: ✭ 694 (+837.84%)
Mutual labels: express, koa
Node Tutorial
☺️Some of the node tutorial -《Node学习笔记》
Stars: ✭ 364 (+391.89%)
Mutual labels: express, koa
Deprecated
🚀 Framework for building universal web app and static website in Vue.js (beta)
Stars: ✭ 858 (+1059.46%)
Mutual labels: express, koa
Cabin
🌲 Cabin is the best JavaScript and Node.js logging service and logging npm package
Stars: ✭ 622 (+740.54%)
Mutual labels: express, koa
koaton
Koaton is a CLI tool that provides a nice starting point for full stack JavaScript Web development with Koa, Ember, and Node.js along with CaminateJS and WebSockets.
Stars: ✭ 28 (-62.16%)
Mutual labels: koa, webframework
Mysrv
Yet another Node.js web framework, based on koa.js 又一个 Node.js MVC 框架,基于Koa2
Stars: ✭ 10 (-86.49%)
Mutual labels: koa, webframework
Kona
a node.js service framework built on koa.js (generators)
Stars: ✭ 23 (-68.92%)
Mutual labels: express, koa
Graphql Upload
Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
Stars: ✭ 1,071 (+1347.3%)
Mutual labels: express, koa
Create Graphql
Command-line utility to build production-ready servers with GraphQL.
Stars: ✭ 441 (+495.95%)
Mutual labels: express, koa
presley
Presley - A lightweight web framework for Windows
Stars: ✭ 26 (-64.86%)
Mutual labels: sinatra, webframework
sgo
A simple, light and fast Web framework written in Go.
Stars: ✭ 75 (+1.35%)
Mutual labels: lightweight, webframework
Vue Chat
👥Vue全家桶+Socket.io+Express/Koa2打造一个智能聊天室。
Stars: ✭ 887 (+1098.65%)
Mutual labels: express, koa
Angela
🙂angela (安其拉):react ssr router redux; react同构框架
Stars: ✭ 15 (-79.73%)
Mutual labels: express, koa
VOX
A golang web framework for humans, inspired by Koa heavily.
Getting started
Installation
Using the go get
power:
$ go get -u github.com/aisk/vox
Basic Web Application
package main
import (
"fmt"
"time"
"github.com/aisk/vox"
)
func main() {
app := vox.New()
// custom middleware that add a x-response-time to the response header
app.Use(func(ctx *vox.Context, req *vox.Request, res *vox.Response) {
start := time.Now()
ctx.Next()
duration := time.Now().Sub(start)
res.Header.Set("X-Response-Time", fmt.Sprintf("%s", duration))
})
// router param
app.Get("/hello/{name}", func(ctx *vox.Context, req *vox.Request, res *vox.Response) {
res.Body = "Hello, " + req.Params["name"] + "!"
})
app.Run("localhost:3000")
}
More Docs
Need Support?
If you need help for using vox, or have other questions, welcome to our gitter chat room.
About the Project
Vox is © 2016-2020 by aisk.
License
Vox is distributed by a MIT license.
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].