Skip to content

MrTimeey/secret-santa

Repository files navigation

Secret Santa CI-Build Publish Docker image

The-Secret-Santa should help groups to organize their secret-santa groups while they can't meet in person. Besides that it's a learning project for various technologies.

Local development

For local development you need to execute the following steps.

Backend

  1. Create '.env' file in root directory
MONGO_PASS=...
MONGO_ROOT_PASS=...
SPRING_MAIL_PASS=...
  1. Start mongo db via docker-compose
docker-compose --file docker-compose.yml --file docker-compose-local.yml up -d mongo-database
  1. Run maven clean install
mvn clean install
  1. Start application 4.1 Plain start
java -Dspring.profiles.active=local -jar  secret-santa-service/target/secret-santa-service-0.1.0-SNAPSHOT.jar

4.2 Start with setting passwords

java -Dspring.profiles.active=local --MONGODB_PASSWORD=<pass> --MAIL_PASSWORD=6wE$hk=<pass>  -jar  secret-santa-service/target/secret-santa-service-0.1.0-SNAPSHOT.jar

Frontend

  1. Install dependencies
npm --prefix secret-santa-ui/ install
  1. Start application
npm --prefix secret-santa-ui/ run serve

Backend standalone

  1. Start backend standalone via docker-compose
docker-compose --file docker-compose.yml --file docker-compose-local.yml up secret-santa-service

Maven profiles

Profile Description
mutationTest Run mutation tests with pitest. Report is generated in target/pit-report.