Dica-Developer / weplantaforest

Rewrite of "i plant a tree" iplantatree.org
http://dica-developer.github.io/weplantaforest/
GNU General Public License v3.0
7 stars 4 forks source link
css eclipse gradle java javascript mysql react

We Plant A Forest

Join the chat at https://gitter.im/Dica-Developer/weplantaforest

Open Issues Build Status Coverage Status WATCHING YOUR NODE.JS DEPENDENCIES.

Dev Requirements

Build System

We use Gradle as our build system. All commands listed here follow the pattern gradle <task>'. If Gradle is not installed on your system you can use sh gradlew <task> instead.

Useful commands

IDE Configuration

Setup with the Gradle Integration for Eclipse plugin.

Setup by using the gradle eclipse plugin

Select "Import..." -> "Gradle Project" then build the model and import the plugins you need.

Additional stuff:

Make sure you have the following classes included for static import:

(In Eclipse under Preferences/Java/Editor/Content Assist/Favorites)

Testing and Developing with MySql

Starting the backend and the UI

./gradlew user:bootRun
./gradlew article-manager:bootRun
ui/node_modules/.bin/http-server --cors ui/client-react/
cd ui; webpack -w

Now you can open a browser window with:

open http://localhost:8080

Troubleshooting

P: I get an error while starting a gradle task. Could not open terminal for stdout: could not get termcap entry

A: Paste following command in current before executing gradle export GRADLE_OPTS=-Dorg.gradle.native=false