Project setup - AtlasOfLivingAustralia/seasonal-calendar GitHub Wiki
- Install java 1.8 if you don't already have it
- Install postgres if you don't have it, version 10
- Clone seasonal-calendar from GitHub
- 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
- Create database using
createdb seasonal-calendars
- 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
- Run seasonal-calendar-api with
./gradlew run --args "server dev-config.yml"
, you may need to modify settings indev-config.yml
3. Run seasonal-calendar-ui
Change to seasonal-calendar-ui folder
- nvm install --lts
- nvm use --lts
- npm install -g @angular/cli
- npm install
- ng serve
Note: you may need to edit
src/environments/environment.ts
to change the url for your seasonal-calendar-api