Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.9 KB

README.md

File metadata and controls

58 lines (43 loc) · 1.9 KB

Skill Matrix

CI Quality Gate Status

A refactoring of the beloved Spring Petclinic to a skill matrix project.

What is a skill matrix?

Here developers of a company can enter and rate their skills. Other people can search for skills and see which person has these skills.

Running it with H2

You can run it from Maven directly using the Spring Boot Maven plugin. Without any profile we use a H2 database.

./mvnw spring-boot:run

You can then access it here: http://localhost:8080/

Running it with postgres dB

First start the database

docker run -p 5432:5432 --name skillmatrix-postgres -e POSTGRES_USER=sm_user -e POSTGRES_PASSWORD=sm_pw -e POSTGRES_DB=skillmatrix-db postgres

then start the app

./mvnw spring-boot:run -Dspring-boot.run.profiles=postgres

Dockerfile

./mvnw clean package
docker build . -t skillmatrix:latest
docker run -p 8080:8080 skillmatrix

Tech Stack

postgres db

Run postgres DB in docker container:

docker run -p 5432:5432 --name skillmatrix-postgres -e POSTGRES_USER=sm_user -e POSTGRES_PASSWORD=sm_pw -e POSTGRES_DB=skillmatrix-db postgres
  • skillmatrix-postgres is the container name
  • skillmatrix-db is the name of the database
  • postgres is the image name pulled from docker