scottdickerson / rbac-api

Education on Spring JPA persistence layer
0 stars 1 forks source link

rbac-api

Installing

Building and running the API in docker

make docker

Testing the API Layer

Issue a postman request that uses http://localhost:8080 with these urls https://www.postman.com/winter-water-658702/workspace/dva-rbac-api/request/2152931-7dd8eff9-f790-4682-8394-4217a85ca927

Checking the database

A Postgres server is running in docker and listening on 5432 database name rbac username user password password

Manually cleaning up the database

make clean-db

Running against a local Postgres Database

Startup Postgres in your local docker environment

docker pull postgres
docker run --name postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=rbac -e POSTGRES_USER=user -p 5432:5432 -d postgres

Then run the application with

SQL_HOST=localhost make run

Heroku

The app is deployed to Heroku automatically when a PR is merged to main. The app is available at https://rbac-api-80ea28b95705.herokuapp.com/