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.
For local development you need to execute the following steps.
- Create '.env' file in root directory
MONGO_PASS=...
MONGO_ROOT_PASS=...
SPRING_MAIL_PASS=...
- Start mongo db via docker-compose
docker-compose --file docker-compose.yml --file docker-compose-local.yml up -d mongo-database
- Run maven clean install
mvn clean install
- 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
- Install dependencies
npm --prefix secret-santa-ui/ install
- Start application
npm --prefix secret-santa-ui/ run serve
- Start backend standalone via docker-compose
docker-compose --file docker-compose.yml --file docker-compose-local.yml up secret-santa-service
Profile | Description |
---|---|
mutationTest | Run mutation tests with pitest. Report is generated in target/pit-report. |