Examples
This repository provides easy to understand code snippets on how to get started with web development with the Go programming language using the Iris web framework.
To read the Iris documentation please navigate to the wiki pages instead.
Table of Contents
- Overview
- Hello world!
- Hello WebAssemply!
- Glimpse
- Tutorial: Online Visitors
- Tutorial: A Todo MVC Application using Iris and Vue.js
- Tutorial: URL Shortener using BoltDB
- Tutorial: How to turn your Android Device into a fully featured Web Server
- POC: Convert the medium-sized project "Parrot" from native to Iris
- POC: Isomorphic react/hot reloadable/redux/css-modules starter kit
- Tutorial: DropzoneJS Uploader
- Tutorial: Caddy
- Tutorial:Iris Go Framework + MongoDB
- Tutorial: API for Apache Kafka
- Structuring
- HTTP Listening
- Common, with address
- UNIX socket file
- TLS
- Letsencrypt (Automatic Certifications)
- Notify on shutdown
- Custom TCP Listener
- Custom HTTP Server
- Graceful Shutdown
- Configuration
- Routing
- Versioning
- Dependency Injection
- MVC
- Subdomains
- Convert
http.Handler/HandlerFunc
- View
- Overview
- Hi
- A simple Layout
- Layouts:
yield
andrender
tmpl funcs - The
urlpath
tmpl func - The
url
tmpl func - Inject Data Between Handlers
- Embedding Templates Into App Executable File
- Write to a custom
io.Writer
- Greeting with Pug (Jade)`
- Pug (Jade) Actions`
- Pug (Jade) Includes`
- Pug (Jade) Extends`
- Jet NEW
- Jet Embedded NEW
- Authentication
- File Server
- Favicon
- Basic UPDATED
- Embedding Files Into App Executable File UPDATED
- Embedding Gziped Files Into App Executable File UPDATED
- Send/Force-Download Files
- Single Page Applications
- How to Read from
context.Request() *http.Request
- How to Write to
context.ResponseWriter() http.ResponseWriter
- ORM
- Desktop App
- Miscellaneous
- Experimental Handlers
- Automated API Documentation
- Testing
- Example
- Caching
- Cookies
- Sessions
- Websockets
Examples are tested using Windows 10, Ubuntu 16.10 with Microsoft's Visual Studio Code and built using the Go 1.9.
Run
- Install the Go Programming Language, version 1.13 from here.
- Install Iris:
go get github.com/kataras/iris/v12@latest
- Download the examples and copy-paste them to your
$GOPATH/src/github.com/iris-contrib/examples
And run
$ cd $GOPATH/src/github.com/iris-contrib/examples/overview
$ go run main.go
Do not forget to star or watch the Iris project.
Any troubles with examples?
https://github.com/iris-contrib/examples/issues
Su, 04 June 2017
This repository is just a minor of the https://github.com/kataras/iris/master/_examples folder.