Skip to content

mykelangelo/bus-depot

Repository files navigation

Online App Codeship Status for mykelangelo/bus-depot Dependabot Uptime Robot status Snyk Sonarcloud Status

Bus Depot (№11): how it works

  • Drivers and Administrators can log into the system. There are buses and routes too.

  • An administrator can assign free buses to the routes, free drivers to the buses, as well as vacate drivers.

  • A driver can see his place of work, and he must also confirm his new appointment.

How to run locally

a) with docker pre-installed

  1. clone this
  2. run ./gradlew clean startDependencies appRun

b) with mysql pre-installed

  1. clone this repository
  2. set up mysql as in /src/main/resources/connection-pool.properties
  3. run ./gradlew clean appRun

How to access online

  1. visit https://bus-depot.herokuapp.com/login
  2. choose language
  3. use any of following sign in method:
  • credentials for admin role:
    • email: HAL9000@bus-depot.com
    • password: ImSorryDaveImAfraidICantDoThat
  • for driver role:
    • choose credentials from migration script or
    • while being logged in as an admin add new driver with new email and password and use these credentials to log in as that driver

How to run tests

a) with docker pre-installed

  1. clone this
  2. run ./gradlew clean startDependencies build

b) with mysql pre-installed

  1. clone this repository
  2. set up mysql as in /src/main/resources/connection-pool.properties
  3. run ./gradlew clean build

How to debug in Intellij Idea while running app

(One can easily debug tests, but with running app on tomcat it's tricky)

  1. run gradle command appRunDebug
  2. create Remote configuration in the IDEA
  3. click debug on this new configuration

PS: for all of the above to work you also need Java 11 or higher installed

Releases

No releases published

Packages

No packages published

Languages