Quick Start

One page summary of how to start a new IRIS-ADMIN project.

Requirements

IRIS-ADMIN is golang project:

  • Download and install golang (it includes go) for your platform.

Get package

  go get -u github.com/snowlyg/[email protected]

Create a directory and Change directories

mkdir site
cd site

Create a new file on site

  • main.go :
package main

import (
	"path/filepath"
	"github.com/snowlyg/iris-admin/server/web"
	"github.com/snowlyg/iris-admin/server/web/web_gin"
)

func main() {
	// 初始化 gin web 项目
	wi := web_gin.Init()
	// 启动项目
	web.Start(wi)
}

Install dependencies

 go mod tidy

Start development server

go run main.go

IRIS-ADMIN will start the Hugo development webserver accessible by default at http://localhost:8085/v0/versions. Saved changes will live reload in the browser.

Other commands

IRIS-ADMIN comes with commands for common tasks. Commands →