Welcome to your Coder Heroes. Use this to start your own Greenfield Project using java, spring, and common industry standards.
This repository assumes a handful of industry practices and standards. We strive to keep you on the bleeding edge of the industry and as a result, we have made some opinions for you so that you don't have to; you're welcome.
Labs teams must follow all Labs Engineering Standards.
awsaccesskey- key to access aws instance local/deployedawssecretkey- authorization token for aws instance (eg. SUPERSECRET)
See application-dev.properties for example values
- Java 11
- Docker installation instructions (preferred)
- Postgres installation instructions (optional)
- Create a
secrets.propertiesfile in the src/main/java/resources directory. This file should contain the following environment variables:
db.username=postgres
db.password=postgres
auth0.id=
Note: You can find the auth0 id in the pinned tab in the slack channel called Product Resources.
auth0.id is the id part of auth0.domain which will look something like this: dev-{id goes here}.auth0.com.
So if id is 123456789, then auth0.domain will be dev-123456789.auth0.com.
- Make sure docker service is running
- On mac, run
open -a Docker.appto open the docker app and start the service - On windows, TODO
- On mac, run
- Run the command
docker-compose upto start the database (make sure you are in the directory with the docker-compose.yml file) - Run the main method in the
CoderHeroesBeAApplicationclass or run./gradlew bootRunfrom the command line
- If you are having issues with the database, try running
docker-compose downand thendocker-compose upto restart the database. - Check to see docker is running by running
docker psin the command line. If you get an error, then docker is not running. - Check to see if your
secrets.propertiesfile is in the correct directory and has the correct environment variables. - Check to see if your
application-dev.propertiesfile has the correct environment variables.