- Java 1.8
- Postgresql 9.3
- Elasticsearch 6.0.1 (uncomment
http.port: 9200
inconfig/elasticsearch.yml
) → Download - Redis 4.0.9 → Download
Application was primarily developed using Eclipse but it works on Netbeans w/ Gradle Plugin
If you don't want to use BIODIV_API_CONFIG
environment variable which is not ideal for IDE based development you can update it to load file from classpath
- Move
@config/biodiv-api.properties
tosrc/main/resources/biodiv-api.properties
and update configuration. - update
src/main/java/biodiv/BiodivServletContextListener.java
- config = configs.properties(new File(System.getenv(ENV_NAME))); + config = configs.properties(new File("biodiv-api.properties"));
./gradlew clean # to clean project
./gradlew build # to test build
./gradlew war # to build deployable war
./gradlew tomcatRun # to run application on tomcat