Project setup - AtlasOfLivingAustralia/seasonal-calendar Wiki

  1. Install java 1.8 if you don't already have it
  2. Install postgres if you don't have it, version 10
  3. Clone seasonal-calendar from GitHub
  4. Create an IntelliJ project from existing source

Run applications in local DEV environment

1. Run profile-service

Run profile-service locally or modify profileServiceBaseUrl value in dev-config.yml to point to a dev instance.

2. Run seasonal-calendar-api

  1. Create database using createdb seasonal-calendars
  2. Create a local.properties file in your seasonal-calendar-api folder, with the contents:
flywayUrl=jdbc:postgresql:seasonal-calendars
flywayUsername=[username]
flywayPassword=[password]
flywayBaselineOnMigrate=false
flywayOutOfOrder=false
  1. Run seasonal-calendar-api with ./gradlew run --args "server dev-config.yml", you may need to modify settings in dev-config.yml

3. Run seasonal-calendar-ui

Change to seasonal-calendar-ui folder

  1. nvm install --lts
  2. nvm use --lts
  3. npm install -g @angular/cli
  4. npm install
  5. ng serve Note: you may need to edit src/environments/environment.ts to change the url for your seasonal-calendar-api