All Projects → get-ion → Ion

get-ion / Ion

Licence: bsd-3-clause
A fast, cross-platform micro web framework. A successor of Iris v8

Programming Languages

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

Projects that are alternatives of or similar to Ion

Haproxy
HAProxy Load Balancer's development branch (mirror of git.haproxy.org)
Stars: ✭ 2,463 (+2731.03%)
Mutual labels:  http2, high-performance
Vert.x
Vert.x is a tool-kit for building reactive applications on the JVM
Stars: ✭ 12,544 (+14318.39%)
Mutual labels:  http2, high-performance
Nuster
A high performance HTTP proxy cache server and RESTful NoSQL cache server based on HAProxy
Stars: ✭ 1,825 (+1997.7%)
Mutual labels:  http2, high-performance
Cowboy
Small, fast, modern HTTP server for Erlang/OTP.
Stars: ✭ 6,533 (+7409.2%)
Mutual labels:  http2, high-performance
Tempesta
The Linux Application Delivery Controller
Stars: ✭ 429 (+393.1%)
Mutual labels:  http2, high-performance
Proteus
Lean, mean, and incredibly fast JVM framework for web and microservice development.
Stars: ✭ 178 (+104.6%)
Mutual labels:  http2, high-performance
Siris
DEPRECATED: The community driven fork of Iris. The fastest web framework for Golang!
Stars: ✭ 146 (+67.82%)
Mutual labels:  http2, high-performance
Firefly
Firefly is an asynchronous web framework for rapid development of high-performance web application.
Stars: ✭ 277 (+218.39%)
Mutual labels:  http2, high-performance
Gun
HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
Stars: ✭ 710 (+716.09%)
Mutual labels:  http2, high-performance
Katwebx
An extremely fast static web server and reverse proxy for the modern web.
Stars: ✭ 39 (-55.17%)
Mutual labels:  http2, high-performance
Akka Http
The Streaming-first HTTP server/module of Akka
Stars: ✭ 1,163 (+1236.78%)
Mutual labels:  http2
Quantum Benchmarks
benchmarking quantum circuit emulators for your daily research usage
Stars: ✭ 70 (-19.54%)
Mutual labels:  high-performance
Hugo Papermod
A fast, clean, responsive Hugo theme
Stars: ✭ 1,202 (+1281.61%)
Mutual labels:  high-performance
Http2
HTTP/2 Protocol Implementation for the Crystal Language
Stars: ✭ 83 (-4.6%)
Mutual labels:  http2
Crail
[Archived] A Fast Multi-tiered Distributed Storage System based on User-Level I/O
Stars: ✭ 69 (-20.69%)
Mutual labels:  high-performance
Okurl
OkHttp Kotlin command line
Stars: ✭ 77 (-11.49%)
Mutual labels:  http2
Servicestack.text
.NET's fastest JSON, JSV and CSV Text Serializers
Stars: ✭ 1,157 (+1229.89%)
Mutual labels:  high-performance
Fast Dat Parser
Superfast blockchain parser for stats
Stars: ✭ 68 (-21.84%)
Mutual labels:  high-performance
A j simple hud
High Performance Display Overlay in iOS
Stars: ✭ 67 (-22.99%)
Mutual labels:  high-performance
Piaf
Client library for HTTP/1.X / HTTP/2 written entirely in OCaml.
Stars: ✭ 86 (-1.15%)
Mutual labels:  http2

ion

build status report card godocs get support view examples ion channel on slack #get-ion on freenode


Ion is a fast, simple and efficient micro web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website, API, or distributed app.

📑 Table of contents

🚀 Installation

The only requirement is the Go Programming Language, at least version 1.8.x

$ go get github.com/get-ion/ion

ion takes advantage of the vendor directory feature. You get truly reproducible builds, as this method guards against upstream renames and deletes.

// file: main.go
package main
import (
    "github.com/get-ion/ion"
    "github.com/get-ion/ion/context"
)
func main() {
    app := ion.New()
    // Load all templates from the "./templates" folder
    // where extension is ".html" and parse them
    // using the standard `html/template` package.
    app.RegisterView(ion.HTML("./templates", ".html"))

    // Method:    GET
    // Resource:  http://localhost:8080
    app.Get("/", func(ctx context.Context) {
        // Bind: {{.message}} with "Hello world!"
        ctx.ViewData("message", "Hello world!")
        // Render template file: ./templates/hello.html
        ctx.View("hello.html")
    })

    // Start the server using a network address and block.
    app.Run(ion.Addr(":8080"))
}
<!-- file: ./templates/hello.html -->
<html>
<head>
    <title>Hello Page</title>
</head>
<body>
    <h1>{{.message}}</h1>
</body>
</html>
$ go run main.go
> Now listening on: http://localhost:8080
> Application started. Press CTRL+C to shut down.
Hello World with Go 1.9

If you've installed Go 1.9 then you can omit the github.com/get-ion/ion/context package from the imports statement.

// +build go1.9

package main

import "github.com/get-ion/ion"

func main() {
	app := ion.New()
	app.RegisterView(ion.HTML("./templates", ".html"))
	
	app.Get("/", func(ctx ion.Context) {
		ctx.ViewData("message", "Hello world!")
		ctx.View("hello.html")
	})

	app.Run(ion.Addr(":8080"))
}

We expect Go version 1.9 to be released in August, however you can install Go 1.9 beta today.

Installing Go 1.9beta2

  1. Go to https://golang.org/dl/#go1.9beta2
  2. Download a compatible, with your OS, archieve, i.e go1.9beta2.windows-amd64.zip
  3. Unzip the contents of go1.9beta2.windows-amd64.zip/go folder to your $GOROOT, i.e C:\Go
  4. Open a terminal and execute go version, it should output the go1.9beta2 version, i.e:
C:\Users\hiveminded>go version
go version go1.9beta2 windows/amd64
Why another new web framework?

ion is easy, it has a familiar API while in the same has far more features than Gin or Martini.

You own your code —it will never generate (unfamiliar) code for you, like Beego, Revel and Buffalo do.

It's not just-another-router but its overall performance is equivalent with something like httprouter.

Unlike fasthttp, ion provides full HTTP/2 support for free.

Compared to the rest open source projects, this one is very active and you get answers almost immediately.

👥 Community

Join the welcoming community of fellow ion developers in slack.

🏫 Learn

The awesome ion community is always adding new examples, _examples is a great place to get started!

Read the godocs for a better understanding.

💙 Support

🥇 People

The current lead maintainer is Bill Qeras, Jr.

List of all contributors

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].