- Make sure you have Java 21+ and Maven installed.
- Navigate to the
calendar-appdirectory:cd calendar-app - Install dependencies and build the backend:
mvn clean install -DskipTests
Navigate to the frontend directory:
cd calendar-app\src\main\resources\static\react-frontend
npm ciFrom the calendar-app directory, start the backend server:
mvn spring-boot:runThe backend will start on the default port (http://localhost:8080).
From the calendar-app/src/main/resources/static/react-frontend directory, start the frontend server:
npm startThe frontend will start on the default port (http://localhost:3000).
The Calendar Application should run at http://localhost:3000
From the calendar-app directory, run:
mvn test -Dtest=**.event.*Test,**.eventuser.*Test,**.user.*Test jacoco:reportThe JaCoCo coverage report is saved at: calendar-app/target/site/jacoco/index.html
From the calendar-app/src/main/resources/static/react-frontend directory, run:
npm test -- --coverage --watchAll=false --passWithNoTests --silentThe Jest coverage report is saved in:
calendar-app/src/main/resources/static/react-frontend/coverage/lcov-report/index.html
Note: Make sure to start both the frontend and backend before implementing system tests
From the calendar-app directory, run:
mvn test -Dtest=**.system_tests.*Test