Skip to content

AITestingOrg/trip-management-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ef69205 · Jul 11, 2018

History

62 Commits
Feb 28, 2018
Apr 10, 2018
Jul 2, 2018
Mar 20, 2018
Feb 21, 2018
Mar 23, 2018
Mar 21, 2018
Jul 2, 2018
Mar 13, 2018
Jul 11, 2018
Jul 11, 2018
Feb 12, 2018
Feb 12, 2018
Feb 28, 2018

Repository files navigation

trip-management-query

Trip Management Query serves all the views of trip. It is the query service in CQRS for trip.

Features

  • Query Trips
    • Query by Trip ID
    • Query all trips
    • Query by User ID
    • Query by User ID and status

Demo

To run this project from docker:

  • Make sure that the Docker daemon is installed and running.
  • Assemble this project.
  • Run docker-compose up --build from the root project.
  • On another terminal run docker ps to see which ports were assigned.

Development

Requirements

  • Docker 17.xx.x
  • JDK 1.8
  • IntelliJ 2018
  • Mongo 3.4

To run this project from docker:

  • Make sure that the Docker daemon is installed and running.
  • Assemble this project.
  • Run docker-compose up --build -f docker-compose-dev.yml from the root project.
  • Run the Gradle task 'application/bootrun' from IntelliJ.

Swagger.

With the app running, go to http://localhost:8080/swagger-ui.html or the corresponding port for it to see the UI or head to http://localhost:8080/v2/api-docs to adquire the source json.