You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

1. ข้อกำหนดเบื้องต้นในการติดตั้ง

  • ติดตั้ง Java Development Kit (JDK)

    • ดาวน์โหลดชุดพัฒนา Java Development Kit (JDK) 8 จาก http://www.oracle.com/technetwork/java/javase/downloads/index.html

    • ทำตามคำแนะนำติดตั้งที่ https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jdk_install.html

    • ตั้ง JAVA_HOME:

      • ใน Windows 7 คลิกขวา My Computer และเลือก Properties > Advanced.

      • ใน Windows 8 ไปที่ Control Panel > System > Advanced System Settings.
      • คลิกปุ่ม Environment Variables.
      • ภายใต้ System Variables, คลิก New.
      • ในฟิลด์ Variable Name , ป้อน JAVA_HOME
      • ในฟิลด์ Variable Value , ป้อนเส้นทางที่ติดตั้ง JDK เช่น C:\Program Files\Java\jdk1.8.0_77


  • ติดตั้ง MySQL.

  • ติดตั้ง Apache Maven

    • ดาวน์โหลด Apache Maven 2.2.1 หรือสูงกว่าจาก https://maven.apache.org/download.cgi

    • ทำตามคำแนะนำติดตั้งที่ https://maven.apache.org/install.html

    • โปรด ensure that the "mvn" command can be executed from the command line by adding it to the PATH:

      • ใน Windows 7 คลิกขวา My Computer และเลือก Properties > Advanced.

      • ใน Windows 8 ไปที่ Control Panel > System > Advanced System Settings.
      • คลิกปุ่ม Environment Variables.
      • ภายใต้ System Variables, ให้เลือกตัวแปร Path และคลิก Edit.
      • ในฟิลด์ Variable Value , append the Maven path (เช่น C:\Program Files\apache-maven-3.3.9\bin) to the current path


  • ติดตั้ง Git Client

2. ติดตั้ง 3rd Party Libraries

cd install-libraries
install_win.bat

Depending on your version of Apache Maven, you might get an error "BUILD FAILED" containing the message: Cannot run program "mvn.cmd"

In this case, edit the file install-libraries\lib\setup-maven_win.xml and replace all occurrences of "mvn.cmd" with "mvn.bat"

3. Obtain Source Code

  • เปิดหน้าต่าง Git CMD (Git Bash) และดำเนินการต่อไปนี้:

mkdir joget_src
cd joget_src
git clone https://github.com/jogetworkflow/jw-community.git --branch 6.0-SNAPSHOT

4. Configure Datasource for Test Case

  • เปิด Command Prompt, และสร้างฐานข้อมูล MySQL ด้วยไฟล์ SQL ใน joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql

mysql -uroot -p
create database jwdb;
exit
mysql -uroot -p jwdb < joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql
  • ดาวน์โหลดไฟล์การกำหนดค่าตัวอย่าง wflow.zip และแตกไฟล์ใน user home folder เช่น C:\Users\yourusername\
  • แก้ไขไฟล์ wflow\app_datasource-default.properties  เช่น C:\Users\yourusername\wflow\app_datasource-default.properties และตรวจสอบให้แน่ใจว่าการกำหนดค่าถูกต้อง (เช่น. MySQL username and password)

workflowDriver=com.mysql.jdbc.Driver
workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8
workflowUser=root
profileName=
workflowPassword=root

To pass unit tests which require a valid datasource, it is important to ensure that:

  1. the wflow folder is located in the correct path inside your user home folder e.g. C:\Users\yourusername\wflow
  2. the MySQL configuration settings in wflow\app_datasource-default.properties are correct

5. สร้าง Project

  • In a Command Prompt, browse to the jw-community\wflow-app folder and execute the Maven install command

cd joget_src\jw-community\wflow-app\
mvn clean install

 

 

  • No labels