Skip to content

Build and manage your own Gold mining company (WIP) - Gradle, Spring Boot, Spring Security, Spring Data, Integration testing, Heroku and Angular (cli)

Notifications You must be signed in to change notification settings

nielsdelestinne/goldenempire

Repository files navigation

Golden Empire

Build and manage your own Gold mining company.

Install

  • run from inside project's root: gradlew clean build

Backend (Spring)

  • Start by running GoldenEmpireApplication.java

Heroku

  • Run locally: heroku local web -f Procfile.test
  • Upload to Heroku
    • Push changes to master from inside root: git push heroku master
    • Open web-app with heroku open
  • heroku run bash to see the files as they are on Heroku

Heroku (1 time setup)

  1. Install the Heroku CLI, validate with heroku --version
  2. Set the default task to build instead of stage: heroku config:set GRADLE_TASK="clean build -x test" (excluding the tests, heroku is no pipeline)
  3. Create the Procfile file
  4. heroku login
  5. heroku create --region eu (to create an app (and postgres db))
  6. git push heroku master (push changes to heroku)
  7. Locally, run a postgresql database configured with the application-dev.properties properties
  8. On Heroku, define 2 buildpacks (1: nodejs, 2: gradle)

References:

  • reference 1: https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku
  • reference 2: https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku

Frontend (Angular)

  • start with npm start from goldenempire-ui folder
  • read the README.md from the goldenempire-ui module for more options

Angular / Angular CLI (1 time setup)

  1. Globally install Angular CLI: npm install -g @angular/cli
  2. Generate a new Angular project with CLI ng new app-root