simple-coder
tool to generate code and framework
Last updated 3 years ago by windwithlife .
MIT · Original npm · Tarball · package.json
$ cnpm install simple-coder 
SYNC missed versions from official npm registry.

环境配置

- 3.全局安装simple-coder

npm install -g simple-coder

4.从零开始生成项目:
simple-coder init project-name
5.进入此项目
cd project-name
6.安装环境NPM 组件
npm install

项目结构

  • frontend 目录下是前端业务代码,其中js,reactjs子目录下是分别用js,reactjs实现的代码. 其中js/reactjs 目录下有4个子目录: 1.dev-server 开发测试用 2.release 打包发布用。 3.resources自动生成的前端代码 4.dist 打包后代码位置,在此位置代码可以用dev-server的nodejs服务进行测试展示。

  • server目录下为服务端代码(含网站框架)其下有java/nodejs等子目录,分别为各种语言实现的soa 服务器及网站框架。目前仅支持java spring-boot框架。

  • modules目录为业务定义位置,内部对各业务实体进行了定义。用simple-coder插件可以根据这里的实体定义,进行自动生成服务器soa接口代码,数据库代码,及前端js代码,reactjs代码。

项目试用

  1. 安装环境所需插件:npm install 2.进入frontend\js\release\目录 3.打包:gulp 4.进入frontend\js\dev-server\目录 5 运行静态资源服务器 node www.js

项目使用:

  • 首先在项目目录处安装npm 插件:npm install (因为reactjs es6 插件有bug,所有工程所需插件都在此处安装) -- 全局安装simple-coder: npm install -g simple-coder-cli

  • 在modules 里定义所需的实体类.

  • 进行代码自动生成: 1.自动生成js代码:simple-coder -g js 2.自动生成reactjs代码simple-coder -g rj 3.自动生成soa 的java代码 simple-coder -g server-java

    本项目本身已根据modules中的缺省几个实体定义,自动生成过一次代码,已有4个模块。

  • 打包测试(以js代码为例): 1.进入frontend\js\release\目录 2.打包: gulp --host=yourServerIP(你的服务器地址与端口,假设你的服务器不是在本地的5389端口运行) gulp run 即可进行打开浏览器进行测试,此时任何源码目录中的代码更新,都会被自动编译,并自动刷新浏览器页面。 4.全量测试: 进入frontend\js\dev-server\目录 运行静态资源服务器 node www.js 注意要运行你的服务端代码,请见“服务端代码运行”

  • 服务端代码运行:
    1.进入java IDE(例入Eclipse/MyEclipse)打开导入(maven) server\java\simpleserver 项目,然后运行soa服务端代码

项目发布:

1.进入frontend\js\release\目录
2.打包:
   gulp release --host=yourServerIP(你的服务器地址与端口)。
3.此项目支持DaoCloud的Docker云服务集群的生产线上自动化发布,布署。如果使用此功能。请在Daocloud上对此项目进行自动集成配置。

样例:

  • 在examples目录下有例子程序,有写好的基本框架,可以参考。

FAQ

Current Tags

  • 1.0.90                                ...           latest (3 years ago)

358 Versions

  • 1.0.90                                ...           3 years ago
  • 1.0.89                                ...           3 years ago
  • 1.0.88                                ...           3 years ago
  • 1.0.86                                ...           3 years ago
  • 1.0.84                                ...           3 years ago
  • 1.0.83                                ...           3 years ago
  • 1.0.82                                ...           3 years ago
  • 1.0.81                                ...           3 years ago
  • 1.0.80                                ...           3 years ago
  • 1.0.78                                ...           3 years ago
  • 1.0.76                                ...           3 years ago
  • 1.0.74                                ...           3 years ago
  • 1.0.72                                ...           3 years ago
  • 1.0.70                                ...           3 years ago
  • 1.0.68                                ...           3 years ago
  • 1.0.66                                ...           3 years ago
  • 1.0.64                                ...           3 years ago
  • 1.0.62                                ...           3 years ago
  • 1.0.60                                ...           3 years ago
  • 1.0.58                                ...           3 years ago
  • 1.0.56                                ...           3 years ago
  • 1.0.54                                ...           3 years ago
  • 1.0.52                                ...           3 years ago
  • 1.0.50                                ...           3 years ago
  • 1.0.48                                ...           3 years ago
  • 1.0.46                                ...           3 years ago
  • 1.0.42                                ...           3 years ago
  • 1.0.40                                ...           3 years ago
  • 1.0.38                                ...           3 years ago
  • 1.0.36                                ...           3 years ago
  • 1.0.34                                ...           3 years ago
  • 1.0.32                                ...           3 years ago
  • 1.0.30                                ...           3 years ago
  • 1.0.22                                ...           3 years ago
  • 1.0.24                                ...           3 years ago
  • 1.0.20                                ...           3 years ago
  • 1.0.18                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 0.9.123                                ...           3 years ago
  • 0.9.122                                ...           3 years ago
  • 0.9.121                                ...           3 years ago
  • 0.9.120                                ...           3 years ago
  • 0.9.119                                ...           3 years ago
  • 0.9.118                                ...           3 years ago
  • 0.9.117                                ...           3 years ago
  • 0.9.116                                ...           3 years ago
  • 0.9.114                                ...           3 years ago
  • 0.9.112                                ...           3 years ago
  • 0.9.110                                ...           3 years ago
  • 0.9.108                                ...           3 years ago
  • 0.9.107                                ...           3 years ago
  • 0.9.106                                ...           3 years ago
  • 0.9.104                                ...           3 years ago
  • 0.9.103                                ...           3 years ago
  • 0.9.102                                ...           3 years ago
  • 0.9.101                                ...           3 years ago
  • 0.9.100                                ...           3 years ago
  • 0.9.99                                ...           3 years ago
  • 0.9.98                                ...           3 years ago
  • 0.9.97                                ...           3 years ago
  • 0.9.96                                ...           3 years ago
  • 0.9.94                                ...           3 years ago
  • 0.9.93                                ...           3 years ago
  • 0.9.92                                ...           3 years ago
  • 0.9.91                                ...           3 years ago
  • 0.9.90                                ...           3 years ago
  • 0.9.88                                ...           3 years ago
  • 0.9.87                                ...           3 years ago
  • 0.9.86                                ...           3 years ago
  • 0.9.85                                ...           3 years ago
  • 0.9.84                                ...           3 years ago
  • 0.9.83                                ...           3 years ago
  • 0.9.82                                ...           3 years ago
  • 0.9.81                                ...           3 years ago
  • 0.9.80                                ...           3 years ago
  • 0.9.78                                ...           3 years ago
  • 0.9.76                                ...           3 years ago
  • 0.9.73                                ...           3 years ago
  • 0.9.72                                ...           3 years ago
  • 0.9.71                                ...           3 years ago
  • 0.9.70                                ...           3 years ago
  • 0.9.68                                ...           3 years ago
  • 0.9.67                                ...           3 years ago
  • 0.9.66                                ...           3 years ago
  • 0.9.61                                ...           3 years ago
  • 0.9.60                                ...           3 years ago
  • 0.9.58                                ...           3 years ago
  • 0.9.56                                ...           3 years ago
  • 0.9.54                                ...           3 years ago
  • 0.9.52                                ...           3 years ago
  • 0.9.50                                ...           3 years ago
  • 0.9.48                                ...           3 years ago
  • 0.9.46                                ...           3 years ago
  • 0.9.44                                ...           3 years ago
  • 0.9.42                                ...           3 years ago
  • 0.9.40                                ...           3 years ago
  • 0.9.38                                ...           3 years ago
  • 0.9.36                                ...           3 years ago
  • 0.9.30                                ...           3 years ago
  • 0.9.29                                ...           3 years ago
  • 0.9.28                                ...           3 years ago
  • 0.9.27                                ...           3 years ago
  • 0.9.26                                ...           3 years ago
  • 0.9.25                                ...           3 years ago
  • 0.9.24                                ...           3 years ago
  • 0.9.23                                ...           3 years ago
  • 0.9.22                                ...           3 years ago
  • 0.9.21                                ...           3 years ago
  • 0.9.20                                ...           3 years ago
  • 0.9.18                                ...           3 years ago
  • 0.9.17                                ...           3 years ago
  • 0.9.16                                ...           3 years ago
  • 0.9.15                                ...           3 years ago
  • 0.9.14                                ...           3 years ago
  • 0.9.13                                ...           3 years ago
  • 0.9.12                                ...           3 years ago
  • 0.9.11                                ...           3 years ago
  • 0.9.10                                ...           3 years ago
  • 0.9.9                                ...           3 years ago
  • 0.9.8                                ...           3 years ago
  • 0.9.6                                ...           3 years ago
  • 0.9.5                                ...           3 years ago
  • 0.9.4                                ...           3 years ago
  • 0.9.3                                ...           3 years ago
  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.8.36                                ...           3 years ago
  • 0.8.34                                ...           3 years ago
  • 0.8.32                                ...           3 years ago
  • 0.8.31                                ...           3 years ago
  • 0.8.30                                ...           3 years ago
  • 0.8.28                                ...           3 years ago
  • 0.8.26                                ...           3 years ago
  • 0.8.24                                ...           3 years ago
  • 0.8.23                                ...           3 years ago
  • 0.8.22                                ...           3 years ago
  • 0.8.21                                ...           3 years ago
  • 0.8.20                                ...           3 years ago
  • 0.8.19                                ...           3 years ago
  • 0.8.18                                ...           3 years ago
  • 0.8.16                                ...           3 years ago
  • 0.8.15                                ...           3 years ago
  • 0.8.12                                ...           3 years ago
  • 0.8.10                                ...           3 years ago
  • 0.8.9                                ...           3 years ago
  • 0.8.8                                ...           3 years ago
  • 0.8.7                                ...           3 years ago
  • 0.8.6                                ...           3 years ago
  • 0.8.5                                ...           3 years ago
  • 0.8.4                                ...           3 years ago
  • 0.8.3                                ...           3 years ago
  • 0.8.2                                ...           3 years ago
  • 0.8.1                                ...           3 years ago
  • 0.7.20                                ...           3 years ago
  • 0.7.18                                ...           3 years ago
  • 0.7.16                                ...           3 years ago
  • 0.7.12                                ...           3 years ago
  • 0.7.10                                ...           3 years ago
  • 0.7.9                                ...           3 years ago
  • 0.7.8                                ...           3 years ago
  • 0.7.7                                ...           3 years ago
  • 0.7.6                                ...           3 years ago
  • 0.7.5                                ...           3 years ago
  • 0.7.4                                ...           3 years ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.6.19                                ...           3 years ago
  • 0.6.18                                ...           3 years ago
  • 0.6.16                                ...           3 years ago
  • 0.6.15                                ...           3 years ago
  • 0.6.14                                ...           3 years ago
  • 0.6.13                                ...           3 years ago
  • 0.6.12                                ...           3 years ago
  • 0.6.10                                ...           3 years ago
  • 0.6.8                                ...           3 years ago
  • 0.6.7                                ...           3 years ago
  • 0.6.6                                ...           3 years ago
  • 0.6.5                                ...           3 years ago
  • 0.6.4                                ...           3 years ago
  • 0.6.3                                ...           3 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.5.80                                ...           3 years ago
  • 0.5.78                                ...           3 years ago
  • 0.5.77                                ...           3 years ago
  • 0.5.76                                ...           3 years ago
  • 0.5.75                                ...           3 years ago
  • 0.5.74                                ...           3 years ago
  • 0.5.73                                ...           3 years ago
  • 0.5.72                                ...           3 years ago
  • 0.5.71                                ...           3 years ago
  • 0.5.70                                ...           3 years ago
  • 0.5.69                                ...           3 years ago
  • 0.5.68                                ...           3 years ago
  • 0.5.67                                ...           3 years ago
  • 0.5.66                                ...           3 years ago
  • 0.5.64                                ...           3 years ago
  • 0.5.63                                ...           3 years ago
  • 0.5.62                                ...           3 years ago
  • 0.5.61                                ...           3 years ago
  • 0.5.60                                ...           3 years ago
  • 0.5.59                                ...           3 years ago
  • 0.5.58                                ...           3 years ago
  • 0.5.56                                ...           3 years ago
  • 0.5.55                                ...           3 years ago
  • 0.5.53                                ...           3 years ago
  • 0.5.52                                ...           3 years ago
  • 0.5.50                                ...           3 years ago
  • 0.5.48                                ...           3 years ago
  • 0.5.47                                ...           3 years ago
  • 0.5.46                                ...           3 years ago
  • 0.5.45                                ...           3 years ago
  • 0.5.44                                ...           3 years ago
  • 0.5.43                                ...           3 years ago
  • 0.5.42                                ...           3 years ago
  • 0.5.41                                ...           3 years ago
  • 0.5.40                                ...           3 years ago
  • 0.5.39                                ...           3 years ago
  • 0.5.38                                ...           3 years ago
  • 0.5.37                                ...           3 years ago
  • 0.5.36                                ...           3 years ago
  • 0.5.35                                ...           3 years ago
  • 0.5.34                                ...           3 years ago
  • 0.5.33                                ...           3 years ago
  • 0.5.32                                ...           3 years ago
  • 0.5.31                                ...           3 years ago
  • 0.5.30                                ...           3 years ago
  • 0.5.29                                ...           3 years ago
  • 0.5.28                                ...           3 years ago
  • 0.5.27                                ...           3 years ago
  • 0.5.26                                ...           3 years ago
  • 0.5.25                                ...           3 years ago
  • 0.5.24                                ...           3 years ago
  • 0.5.22                                ...           3 years ago
  • 0.5.21                                ...           3 years ago
  • 0.5.18                                ...           3 years ago
  • 0.5.17                                ...           3 years ago
  • 0.5.16                                ...           3 years ago
  • 0.5.15                                ...           3 years ago
  • 0.5.14                                ...           3 years ago
  • 0.5.13                                ...           3 years ago
  • 0.5.12                                ...           3 years ago
  • 0.5.10                                ...           3 years ago
  • 0.5.9                                ...           3 years ago
  • 0.5.8                                ...           3 years ago
  • 0.5.7                                ...           3 years ago
  • 0.5.6                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.6                                ...           3 years ago
  • 0.4.5                                ...           3 years ago
  • 0.4.4                                ...           3 years ago
  • 0.4.3                                ...           3 years ago
  • 0.4.2                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.3.21                                ...           3 years ago
  • 0.3.20                                ...           3 years ago
  • 0.3.19                                ...           3 years ago
  • 0.3.18                                ...           3 years ago
  • 0.3.17                                ...           3 years ago
  • 0.3.16                                ...           3 years ago
  • 0.3.15                                ...           3 years ago
  • 0.3.14                                ...           3 years ago
  • 0.3.12                                ...           3 years ago
  • 0.3.8                                ...           3 years ago
  • 0.3.7                                ...           3 years ago
  • 0.3.6                                ...           3 years ago
  • 0.3.5                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.2.40                                ...           3 years ago
  • 0.2.38                                ...           3 years ago
  • 0.2.37                                ...           3 years ago
  • 0.2.36                                ...           3 years ago
  • 0.2.35                                ...           3 years ago
  • 0.2.34                                ...           3 years ago
  • 0.2.33                                ...           3 years ago
  • 0.2.32                                ...           3 years ago
  • 0.2.31                                ...           3 years ago
  • 0.2.30                                ...           3 years ago
  • 0.2.28                                ...           3 years ago
  • 0.2.27                                ...           3 years ago
  • 0.2.26                                ...           3 years ago
  • 0.2.25                                ...           3 years ago
  • 0.2.24                                ...           3 years ago
  • 0.2.22                                ...           3 years ago
  • 0.2.23                                ...           3 years ago
  • 0.2.21                                ...           3 years ago
  • 0.2.20                                ...           3 years ago
  • 0.2.19                                ...           3 years ago
  • 0.2.17                                ...           3 years ago
  • 0.2.15                                ...           3 years ago
  • 0.2.14                                ...           3 years ago
  • 0.2.13                                ...           3 years ago
  • 0.2.12                                ...           3 years ago
  • 0.2.11                                ...           3 years ago
  • 0.2.10                                ...           3 years ago
  • 0.2.9                                ...           3 years ago
  • 0.2.8                                ...           3 years ago
  • 0.2.7                                ...           3 years ago
  • 0.2.6                                ...           3 years ago
  • 0.2.5                                ...           3 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.0.44                                ...           3 years ago
  • 0.0.43                                ...           3 years ago
  • 0.0.42                                ...           3 years ago
  • 0.0.41                                ...           3 years ago
  • 0.0.40                                ...           3 years ago
  • 0.0.39                                ...           3 years ago
  • 0.0.38                                ...           3 years ago
  • 0.0.37                                ...           3 years ago
  • 0.0.36                                ...           3 years ago
  • 0.0.35                                ...           3 years ago
  • 0.0.33                                ...           3 years ago
  • 0.0.32                                ...           3 years ago
  • 0.0.31                                ...           3 years ago
  • 0.0.30                                ...           3 years ago
  • 0.0.29                                ...           3 years ago
  • 0.0.28                                ...           3 years ago
  • 0.0.27                                ...           3 years ago
  • 0.0.26                                ...           3 years ago
  • 0.0.25                                ...           3 years ago
  • 0.0.24                                ...           3 years ago
  • 0.0.23                                ...           3 years ago
  • 0.0.22                                ...           3 years ago
  • 0.0.21                                ...           3 years ago
  • 0.0.20                                ...           3 years ago
  • 0.0.18                                ...           3 years ago
  • 0.0.17                                ...           3 years ago
  • 0.0.16                                ...           3 years ago
  • 0.0.15                                ...           3 years ago
  • 0.0.14                                ...           3 years ago
  • 0.0.13                                ...           3 years ago
  • 0.0.12                                ...           3 years ago
  • 0.0.11                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |