• Stars
    star
    84
  • Rank 389,211 (Top 8 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 10 years ago
  • Updated about 2 years 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

pick

create curses based interactive selection list in the terminal
Python
722
star
2

libae

redis's async event loop library
C
188
star
3

rust-memcache

memcache client for rust
Rust
128
star
4

pic2ascii

convert pictrue to ascii code
Python
63
star
5

MySensors

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

multicorn

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

rust-ping

Rust
20
star
8

request

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

browsercookies

Loads cookies from your browsers
Go
10
star
10

.vim

Vim Script
10
star
11

backports.interpreters

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

Slide-Bottom-Bar

A slide bottom action bar on Android
Java
9
star
13

python-memcache

Experimental memcached client library for python.
Python
7
star
14

any

Go
6
star
15

qidong

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

pie

scheme to python-bytecode compiler
Python
5
star
17

monologue

Simple blog system based on Django.
JavaScript
4
star
18

chrysanthemum

Go
4
star
19

aisk.me

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

rust-fire

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

meowscript

JavaScript
3
star
22

presentations

HTML
3
star
23

a-byte-of-haskell

Haskell 简明教程
Python
3
star
24

awpie

Using Python as awk alternative
Python
3
star
25

leancloud-python-todo-app

HTML
2
star
26

puck

scheme implementation in C++
C++
2
star
27

Salt-Pass

Java
2
star
28

naive

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

Rhino-REPL

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

rust-filelock

Rust
2
star
31

algorithms

C++
1
star
32

leancloud-python-test-app

Python
1
star
33

boat

lodash/underscore for go
Go
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