Coder Social home page Coder Social logo

slacker's Introduction

安装

mkdir $GOPATH/src/github.com/lixiangzhong -p
cd $GOPATH/src/github.com/lixiangzhong
git clone [email protected]:lixz/slacker.git
cd $GOPATH/src/github.com/lixiangzhong/slacker/slacker
go install

slacker #运行
NAME:
   slacker - 一键生成后台管理项目

USAGE:
   slacker [global options] command [command options] [arguments...]

VERSION:
   2.0.0

COMMANDS:
     new      create new project
     add      add table
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

新建项目

slacker new <appname>
# flag

-addr=127.0.0.1:3306 -user=root -passwd=123456 -db=tablename

示例

slacker new app1 -addr=127.0.0.1:3306 -user=root -passwd=123456  -db=tablename

已有项目,添加代码

slacker add  <action>

action :

m : 生成 models

s : 生成 service

d : 生成 dao

v : 生成 vue

c : 生成 controllers

js : 生成 js

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.