Skip to content

Healthy Mothers, Healthy Babies Coalition of Georgia Programs Map

License

Notifications You must be signed in to change notification settings

RyanBard/healthbam

 
 

Repository files navigation

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:

About

Healthy Mothers, Healthy Babies Coalition of Georgia Programs Map

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 51.0%
  • JavaScript 41.9%
  • HTML 7.0%
  • Other 0.1%