Skip to content

alexdiaz2/cruisebound

Repository files navigation

Cruisebound

Cruisebound - Jorge Backend Engineer Assessment

Preparation

You must have installed the following tools:

Local environment

Docker

Configuration

Local environment

Before running the project you should create a new PostgreSQL database. You should modify the applications.properties file with the parameters you used to create the database. The default configuration uses the "sailings" database with the "postgres" user and the "toor" password

  • spring.datasource.url=jdbc:postgresql://localhost:5432/sailings
  • spring.datasource.username=postgres
  • spring.datasource.password=toor

Docker

The Dockerfile will be used to run the Java environment The docker-compose.yml file will be used to specify the configurations The db/init.sh script will create the sailings database automatically

Run

Remember to close all connections to ports 8080 and 5432

To run the project you should execute the following commands in the root folder of the project "cruisebound":

  • mvn clean install -DskipTests

Local

  • mvn spring-boot:run

Docker

  • docker-compose up

Run tests in local

To run the tests you should configure the postgres database and execute the following command:

  • mvn test

If you want to build the project and run the tests use:

  • mvn clean install

Usage

You can import the "Assessment - Jorge Diaz.postman_collection.json" file into postman to call the APIs.

About

Cruisebound - Jorge Backend Engineer Assessment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages