• Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
    Lua
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

A LUA fast, low-latency, low-memory footprint, web JSON-API framework with Test Driven Development helpers and patterns.

Build Status

GIN JSON-API framework

Gin is an JSON-API framework, currently in its early stage.

It has been designed to allow for fast development, TDD and ease of maintenance.

Gin is helpful when you need an extra-boost in performance and scalability, as it runs embedded in a packaged version of nginx called OpenResty and it's entirely written in Lua. For those not familiar with Lua, don't let that scare you away: Lua is really easy to use, very fast and simple to get started with.

For instance, this is what a simple Gin controller looks like:

local InfoController = {}

function InfoController:whoami()
    return 200, { name = 'gin' }
end

return InfoController

When called, this returns an HTTP 200 response with body:

{
	"name": "gin"
}

Features

Gin already provides:

Get started now! Please refer to the official gin.io website for documentation.

Contributing

So you want to contribute? That's great! Please follow the guidelines below. It will make it easier to get merged in.

Before implementing a new feature, please submit a ticket to discuss what you intend to do. Your feature might already be in the works, or an alternative implementation might have already been discussed.

Every pull request should have its own topic branch. In this way, every additional adjustments to the original pull request might be done easily, and squashed with git rebase -i. The updated branch will be visible in the same pull request, so there will be no need to open new pull requests when there are changes to be applied.

Do not commit to master in your fork. Provide a clean branch without merge commits.

Ensure to include proper testing. To test gin you simply have to be in the project's root directory and issue:

$ busted

โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ— โ—‹
195 successes / 0 failures / 0 pending : 0.156489 seconds.

There will be no merges without a clean build.

More Repositories

1

misultin

Misultin (pronounced mee-sool-tรฉen) is an Erlang library for building fast lightweight HTTP(S) servers, which also supports websockets.
Erlang
649
star
2

syn

A scalable global Process Registry and Process Group manager for Erlang and Elixir.
Erlang
622
star
3

apnotic

A Ruby APNs HTTP/2 gem able to provide instant feedback.
Ruby
477
star
4

SublimErl

An Erlang Plugin for Sublime Text 2, which enables code completion and allows you to run tests within the editor itself.
Python
190
star
5

net-http2

NetHttp2 is an HTTP/2 client for Ruby.
Ruby
140
star
6

ram

A distributed KV store for Erlang and Elixir.
Erlang
119
star
7

pgpool

A PosgreSQL client that automatically uses connection pools and handles reconnections in case of errors.
Erlang
42
star
8

cowbell

An Erlang node connection manager.
Erlang
26
star
9

erlcassa

A Cassandra CQL client.
Erlang
18
star
10

bisbino

An Erlang HTTP server with FastCGI as backend.
Erlang
18
star
11

rebar3_vendor

Rebar3 Vendor Plugin.
Erlang
14
star
12

SCAR_UCM

Utilities Construction Mod for Arma 3.
SQF
11
star
13

PyAES256

An AES-256 cryptographic module for Python.
C
9
star
14

erlgate

An alternative transport for Erlang messages across nodes.
Erlang
8
star
15

lager_airbrake

An Airbrake lager backend.
Erlang
7
star
16

gin-demo

The working demo code of the Gin tutorial on gin.io.
Lua
4
star
17

origami

My standard bootstrap project for distributed TCP applications.
Erlang
3
star
18

SCAR_E2TB

A mod for Arma 3 that allows you to export data to Terrain Builder, from EDEN and in game.
SQF
3
star
19

phpass

A simple implementation of PHPassโ€™ Portable Hash.
Erlang
3
star
20

mochiweb_reloader

Erlang
2
star
21

contextual-git-prompt

Display git information in OSX terminal's prompt.
Shell
2
star
22

pyopenspime

Automatically exported from code.google.com/p/pyopenspime
Python
2
star