Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Latest commit

 

History

History
66 lines (46 loc) · 2.14 KB

README.md

File metadata and controls

66 lines (46 loc) · 2.14 KB

PeopleMover Server

This is the back-end server for PeopleMover.

Building

Getting Started

These instructions will get you a copy of the backend up and running on your local machine for development and testing purposes. PeopleMover is written primarily in Kotlin.

Once you have a copy of the backend up and running, head over to the UI README to start up the frontend for local development and testing.

Dependencies

Starting the local instance of the database

In the ./api directory, run the command to start up the database instance specified in the docker-compose.yml file. This command will depend on if you are using Docker or Podman

docker compose up

or

podman-compose up

The database needs to be running in order for the unit tests to fully pass.

Build with Gradle

This repository uses a Gradle multi-module build. All Gradle commands should be run from the root of the repository.

Build the project with the following command: ./gradlew api:build. This will run the backend tests.

Testing

This product uses JUnit tests.

./gradlew api:test

Note: The database needs to be running in order for the unit tests to fully pass.

Running

Running the application locally can be done with either an H2 in-memory database or a MySQL database.

Our deployed backend currently relies on our Corporate ADFS system; the e2e-test profile replaces it with a simplified auth system for testing.

H2 In-Memory Database

The simplest way to get the application spun up is by using the in-memory database via Gradle:

SPRING_PROFILES_ACTIVE=e2e-test,h2 ./gradlew api:bootRun

Docker MySql Database

docker compose up -d

SPRING_PROFILES_ACTIVE=e2e-test,mysql ./gradlew api:bootRun

License

PeopleMover is licensed under the Apache 2.0 license.