Code Monkey home page Code Monkey logo

xiaomei's Introduction

xiaomei(小美)

一个简单、实用的go语言web框架,注重部署、日志、报警、尽可能的自动化。

Build Status Coverage Status Go Report Card Documentation

安装

go get github.com/lovego/xiaomei

执行如上go get命令即可将xiaomei安装到$GOPATH/bin目录中。 如果$GOPATH/bin已经在$PATH搜索路径中,你可以输入xiaomei version命令来检查xiaomei是否已经安装成功。 如果输出类似"xiaomei version 18.7.13"的版本信息,就说明已经安装成功了。

现在xiaomei包含了三个服务:

  1. app服务:运行项目编译出的二进制文件,用来服务HTTP请求、执行定时任务等。
  2. web服务:运行nginx,用来服务项目内的静态文件。
  3. logc服务:运行logc日志收集工具,存储到ElasticSearch,供Kibana可视化展现。

文档

概览

在项目的开发流程中常用的命令如下:

xiaomei new example          # 生成项目
cd example                   # 进入项目目录(后续命令可在项目内任何目录执行)

xiaomei app run              # 在本机启动app服务器
xiaomei web run              # 在本机启动web服务器

xiaomei deploy                  # 部署所有服务到开发环境
xiaomei access setup            # 设置开发环境的Nginx接入层

xiaomei deploy qa               # 部署所有服务到QA环境
xiaomei access setup qa         # 设置QA环境的Nginx接入层

xiaomei deploy production       # 部署所有服务到生产环境
xiaomei access setup production # 设置生产环境的Nginx接入层

xiaomei的完整命令行用法可以使用xiaomei --help来查看。

xiaomei's People

Contributors

bughou avatar liaohengchen avatar fanpei91 avatar echoutopia avatar

Stargazers

Peach avatar lchjczw avatar Corrine avatar noehou avatar  avatar  avatar  avatar  avatar  avatar iOS666888 avatar Bamboo avatar Ray Rao avatar leftmouse avatar  avatar 东风西风读书屋 avatar  avatar zhangnuo avatar  avatar  avatar fox avatar

Watchers

James Cloos avatar  avatar  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.