• Stars
    star
    84
  • Rank 375,851 (Top 8 %)
  • Language
    Go
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple and lightweight Go web framework inspired by koa

VOX

Go Reference Build Status Codecov Go Report Card Maintainability Gitter chat

A golang web framework for humans, inspired by Koa heavily.

VoxLogo

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

https://aisk.github.io/vox/

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.

More Repositories

1

libae

redis's async event loop library
C
187
star
2

rust-memcache

memcache client for rust
Rust
124
star
3

pic2ascii

convert pictrue to ascii code
Python
63
star
4

MySensors

Show macOS's chip tempratures and fan speeds on menu bar.
Swift
35
star
5

multicorn

Multicorn is a multi-interpreter server for Python.
Python
34
star
6

rust-ping

Rust
16
star
7

request

HTTP client for haskell, inpired by requests and http-dispatch.
Haskell
11
star
8

browsercookies

Loads cookies from your browsers
Go
10
star
9

.vim

Vim Script
10
star
10

backports.interpreters

interpreters module in python which is backported from the future
Python
9
star
11

Slide-Bottom-Bar

A slide bottom action bar on Android
Java
9
star
12

python-memcache

Experimental memcached client library for python.
Python
7
star
13

any

Go
6
star
14

pie

scheme to python-bytecode compiler
Python
5
star
15

qidong

Young, simple, sometimes naïve miHoYo / HoYoverse games launcher.
Python
4
star
16

monologue

Simple blog system based on Django.
JavaScript
4
star
17

chrysanthemum

Go
4
star
18

aisk.me

A blog for http://aisk.me runs on racket
4
star
19

rust-fire

Turn your function(s) to a command line app with one line of code.
Rust
4
star
20

meowscript

JavaScript
3
star
21

a-byte-of-haskell

Haskell 简明教程
Python
3
star
22

presentations

HTML
3
star
23

awpie

Using Python as awk alternative
Python
3
star
24

leancloud-python-todo-app

HTML
2
star
25

puck

scheme implementation in C++
C++
2
star
26

Salt-Pass

Java
2
star
27

naive

Naive is a too young too simple template engine
Python
2
star
28

Rhino-REPL

A JavaScript REPL using Rhino runs on Android
Java
2
star
29

rust-filelock

Rust
2
star
30

algorithms

C++
1
star
31

leancloud-python-test-app

Python
1
star
32

boat

lodash/underscore for go
Go
1
star
33

pypprof

Add HTTP profiling endpoints to a Python application like Go's net/http/pprof
Python
1
star
34

playbook

A ansible playbook to deploy a vps server.
1
star
35

test-pypi-package-build

Python
1
star
36

.emacs.d

My emacs config
Emacs Lisp
1
star
37

simpleflake.nim

Nim
1
star
38

dotfiles

my dot files
Vim Script
1
star
39

cloudcode-python-sdk

Python
1
star
40

rd-json-parser

A simple recursive descent parser parser
C++
1
star
41

obama

JavaScript
1
star
42

goblin

Go
1
star
43

leancloud-php-sdk

SDK for leancloud
PHP
1
star