返回

提问 添加收藏

快速开始一个 ActFramework 应用项目

罗格林 发布于 2018年01月03日 (共有2个回帖)

下面是在 posix 兼容系统上快速开始一个 #ActFramework 项目的方式:

curl https://gist.githubusercontent.com/greenlaw110/e1d8d9c314187d29f444a599949eaaef/raw/ -o bootact.sh && bash bootact.sh

执行上面的命令之后会进入项目创建交互流程, 大致情形如下:

---------------------------------
Act.Framework Project Starter Kit
---------------------------------

(C)2017 Thinking.Studio 
Written by J.Cincotta

Use -? for help with command-line usage. Use this script without options for interactive (wizard) mode.

Act.Framework Interactive Project Setup...

Enter the directory for the new project: ~/projects/helloworld

Enter the name of this project (lower case name): helloworld

Enter the organisation package name (Java style like com.google.utilities): com.mycomp

Would you like to use the Rythm templating engine with this project? [y/n]: y
Would you like to use Node.JS and Gulp with this project? [y/n]: n

Working................
-------------------
New Project Summary
-------------------
Project location: /home/luog/projects/helloworld
Package name: com.mycomp.helloworld
Configured to use Act.Framework version 1.6.0.2
Node.JS and Gulp support: NO
Rythm Template Engine suport: YES

然后就可以进入你的项目开始了工作了:

luog@luog-Satellite-P50-A:/tmp/x$ cd ~/projects/helloworld/
luog@luog-Satellite-P50-A:~/projects/helloworld$ ll
total 16K
drwxrwxr-x 3 luog luog 4.0K Jan  3 12:24 src/
-rw-rw-r-- 1 luog luog 1.8K Jan  3 12:24 pom.xml
-rwxr-xr-x 1 luog luog   38 Jan  3 12:24 run_dev*
-rwxr-xr-x 1 luog luog  147 Jan  3 12:24 run_prod*

试试执行一下上面的 run_dev 命令看看效果吧 :-)

JavaActFramework
文明上网,理性发言
客户端 Android iPhone WP7