Healthy Mothers, Healthy Babies Coalition of Georgia Programs Map
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
config
database
gradle/wrapper
integration-tests
src
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
Procfile
Procfile.windows
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle
system.properties

README.md

Stories in Ready

healthBAM

Making an impact on the health of Babies And Mothers

How To Contribute

See Contributing Guidelines.

Getting Started

Setting Up IDE

If using IntelliJ, "Import Project", and select the build.gradle file. This will build and set up IntelliJ for the project.

Alternative method: you can run this command to generate an "ipr" file that can be opened:

~/projects/healthbam $ ./gradlew idea

Building

~/projects/healthbam $ ./gradlew build

Running Locally

PostgreSQL

You must have a postgres DB to use when running locally.

First, connect to the local DBMS from your project's top level directory (same directory as this README):

~/projects/healthbam $ psql postgres

Next, initialize the user & database with the local-setup.sql:

postgres=# \i database/local-setup.sql

Last, quit out of the psql shell:

hmhb_db=# \q

Note: If you want to start over, you can use the local-drop-everything.sql script to clean up the user & database created to start fresh.

Environment Variable Setup

Create a .env file to the top level directory of this project with the PORT to serve and JDBC_DATABASE_URL:

PORT=8080
JDBC_DATABASE_URL="jdbc:postgresql://localhost:5432/hmhb_db"
GOOGLE_OAUTH_CLIENT_ID="259324353484-f8u4ltb5qko7fltub68dguhs16ae93nr.apps.googleusercontent.com"
GOOGLE_OAUTH_CLIENT_SECRET="<secret>"
HMHB_JWT_SECRET="<also secret>"

Now you can run the latest code you have built locally with:

~/projects/healthbam $ heroku local

Perks Offered By Spring Boot

Endpoints providing information on: