Appearance
What you need
- Make sure JDK is installed, download it here.
- Supported JBoss or Wildfly server.
- JBoss Enterprise Application Platform 6.4 (EAP). This is the recommended container for Zanata, and it can be downloaded from jboss.org downloads. Installation instructions.
- Wildfly is much easier to install on Mac. Recommended version is 8.1.x, which can be downloaded from wildfly.org downloads. You can also install with
brew install wildfly-as.
- A suitable MySQL database. This is NOT included in the Zanata archive. You can download MySQL here. You can also install with
brew install mysql. - An email (SMTP) server to perform certain notifications. Mac OSX 10.10 can use postfix.
- JDK version 7 or later (7 is recommended for EAP as it is not yet certified to run against Java 8). OpenJDK is recommended, but you can also download Oracle's JDK
- Install maven
brew install maven.
Setting up the Zanata Database
Make sure you have downloaded MYSQL. Start it one the command line with
mysql -u root.Start MySQL service and create a database schema for Zanata.
CREATE DATABASE zanata /**!40100 DEFAULT CHARACTER SET utf8 **/;
Installing from source
- Run
git clone https://github.com/zanata/zanata-platform.git - Run
mvn clean package -Dchromefirefox -DskipTests -Dfunctional-test -Pwildfly8 - Wait for the build and test to complete. This takes about 60 mins on our machine. You may want to go grab some coffee.
- Run
brew install gradle - Run
cd zanata-overlay && gradle unzip target/zanata-*-wildfly*.zip -d $JBOSS_HOMEcd $JBOSS_HOME/bin/zanata-installerchmod +x install.sh./install.shThis will prompt you for database configuration detailscp -r <zanata-server-repo-dir>/zanata-war/target/zanata-<version>.war $JBOSS_HOME/standalone/deployments/zanata.war
Run
$JBOSS_HOME/bin/standalone.sh- go to
localhost:8080/zanata - Create an account
- Run
UPDATE HAccount SET enabled = true WHERE username = 'myusername';in mysql - Then run
insert into HAccountMembership(accountId, memberOf) values((select id from HAccount where username = 'myusername'), (select id from HAccountRole where name = 'admin'));in mysql.
After pulling new changes to zanata-server
Running zanata-spa
zanata-spa is the javascript module for the new translation editor, that will replace the older editor in the near future.
unzip $JBOSS_HOME/standalone/deployments/zanata.war -d zanatawar && rm zanata.war && mv zanatawar zanata.warTurn zanata.war into a directorynpm run build && cp -r <spa-directory>/build/* $JBOSS_HOME/standalone/deployments/zanata.war/app