RHoKAustralia / berry-street

7 stars 2 forks source link

Berry Street Family Finder

Getting Started

  git clone https://github.com/RHoKAustralia/berry-street.git

If you are on windows, make sure you are using UNIX line endings as most of the tools will inside a linux docker container.

Basic setup instructions

The quickest way to get the application up and running on your local machine is using Docker

Once you have Docker installed,

To stop the application, just hit Ctrl+C

Back End Development / Testing

You will need to have Java 8 installed on your system and also groovy and gradle. SDKMAN! is a good option to install the latter two.

If you want to use an IDE like IntelliJ Idea (this is the preferred one) or Eclipse, you can generate the appropriate project files by running

api$ ./gradlew idea
api$ ./gradlew eclipse

and then import the project in the IDE

Front End Development / Testing

For a supercharged frontend dev experience, make sure you have these Chrome extensions installed:

Populating the Database with Sample Data

Neo4J documentation

There are some helpful examples to help understand the way that Neo4J interfaces with the API code in the Neo4J tutorial

Open tasks

Troubleshooting

Windows 7: If you see this

  ←[91m/bin/sh: 1: ./gradlew: Permission denied
  ←[0m←[31mERROR←[0m: Service 'api' failed to build: The command '/bin/sh -c ./gradlew build jar' returned a non-zero code: 126

then you can try running the api on its own, and using docker to run everything else:

  1. Edit docker-compose.yml to comment-out (#) the api section, and the link to it in frontend/links.
  2. Rerun docker-compose build then docker-compose up as below.
  3. Open a command prompt at \api. Run gradlew bootRun to start the api