Coder Social home page Coder Social logo

irisadminapi's Introduction

IrisAdmin

Code Coverage Go Report Card GoDoc Licenses
IrisAdmin

简单项目仅供学习,欢迎指点!

演示地址

主分支: http://irisadminapi.snowlyg.com

blog 分支: http://www.snowlyg.com

IRIS V12 中文文档

账号/密码 : username/123456

Iris-go 学习交流 QQ 群 :676717248

Iris-go

项目开发过程详解

1.Iris-go 项目登陆 API 构建细节实现过程

2.iris + casbin 从陌生到学会使用的过程


  • 安装项目依赖

加载依赖管理包 (解决国内下载依赖太慢问题) 使用国内七牛云的 go module 镜像。

参考 https://github.com/goproxy/goproxy.cn。

阿里: https://mirrors.aliyun.com/goproxy/

官方: https://goproxy.io/

**:https://goproxy.cn

其他:https://gocenter.io

golang 1.13+ 可以直接执行:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
  • 复制配置文件
cp application.example.yml application.yml

修改配置文件 application.yml

  • 运行项目

如果想使用 go run main.go --config 命令运行,注意不用 --config 指定配置路径,将无法加载配置文件

 go run main.go --config your_config_path

推荐使用 air 热编译工具

# 安装工具 air     
go get -u github.com/cosmtrek/air

cp .air.example.conf  .air.conf # 复制后修改 .air.conf 文件,默认为 mac 环境

air
  • 填充数据, 注意配置文件同项目配置文件,权限数据位于 tools/seed/data
go build -o seed tools/seed/main.go 
./seed --config your_config_path --path youer_seed_data_path

postman 接口

https://www.getpostman.com/collections/048078cdfd16667352b0

运行测试

go test ./...

感谢

JetBrains 对本项目的支持。

irisadminapi's People

Contributors

snowlyg avatar kataras avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.