Passenger is meant to create, store, and serve passengers as a framework for the REST API.
- Query Passenger
- Query by Passenger ID
- Query all Passengers
- Creat Passenger
- Update Passenger
- Delete Passenger
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. To run locally:- []
To run using docker-compose: (be sure to have Docker installed)
- Run
docker-compose pull
to make sure you have the latest images pulled. - Run
docker-compose up --build
within the root of the passenger folder. - On another terminal run '''docker ps''' to see which ports were assigned
With json body:
{
"firstName": "Passenger",
"lastName": "One",
"email": "passenger@service.com",
"streetAddress": "House One",
"city": "Hollywood",
"state": "Florida",
"zip": "33024",
"phoneNumber": "1800-123-4567"
}
- Returns list of all passengers.
- Enter the passenger id received from the POST request in the {id} field to retrieve individual passenger.
With json body:
{
"firstName": "Passenger",
"lastName": "One",
"email": "passenger@service.com",
"streetAddress": "House One",
"city": "Hollywood",
"state": "Florida",
"zip": "33024",
"phoneNumber": "1800-123-4567"
}
- Where id is the passenger id received from the POST request at creation.
- Docker 17.xx.x
- JDK 1.8
- IntelliJ 2018
- Postgresql
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
The following applications must have been installed in your system previous to run this application.
- Java8
- Postgresql
Check Postgresql root and username and password on file: src/main/resources/application.yml
Create DB on Postgresql: passenger_db
To build the microservice run command on root directory of the project: ./gradlew clean build bootRun
Test http://localhost:8081/api/v1/passenger -GET
- Spring Boot - Application Framework
- Gradle - Dependency Management
This project is licensed under the MIT License - see the LICENSE.md file for details
Passenger