Yoga Application is a software that allows individuals to easily join or leave yoga classes, while enabling the admin to effectively plan sessions according to the availability of instructors.
This application is a working support for tests (unit, integration and end to end).
- Verify the presence of a MySQL database instance installed and set up correctly on your system, or use the docker file :
- ressources/docker/docker-compose.yml
- Run the script
init_2dbs.sqlfor creating the 2 databases found in theresources/sqldirectory to set up the required database schema. - For your databases connections use these configuration files :
- ressources/sql/_src_main_resources/application.properties
- ressources/sql/_src_test_resources/application-test.properties
- Copy the SQL initialisation scripts folders and files in main and test, resources folders.
MYSQL_URL: Your MySQL database's URL. For instance,jdbc:mysql://localhost:3306/.MYSQL_ROOT_PASSWORD: The password for your MySQL database.
- Make sure you've installed all needed dependencies: Java, Node.js, Maven.
- Clone this repo to your local environment.
- Move to the back-end project folder and execute
mvn clean installto fetch dependencies and build the project. - Go to the front-end project folder and use
npm installto fetch front-end dependencies.
- In the back-end project folder, run
mvn spring-boot:runto initiate the back-end server. - In the front-end project folder, use
npm run startto start the front-end interface.
You can read this : https://github.com/davipro34/Yoga-App/blob/main/front/README.md
- In the front-end project folder, execute
npm run testto conduct front-end unit tests via Jest. - For the coverage report, utilize
npm run test:coverage. - A
index.htmlreport will be created in thefront/coverage/jest/index.htmlpath.
You can read this : https://github.com/davipro34/Yoga-App/blob/main/front/README.md
- In the front-end project area, execute
npm run e2efor conducting end-to-end testing using Cypress. - For the coverage overview, utilize
npm run e2e:coverage. - The
index.htmlreport will be found in thefront/coverage/lcov-report/index.htmlfolder.
You can read this : https://github.com/davipro34/Yoga-App/blob/main/back/README.md
- Make sure to execute the database creation script found in the
resources/sqldirectory before running tests. - In the back-end project area, run
mvn clean testto perform back-end unit and integration tests via JUnit and Mockito. - A coverage report will be accessible in the
back/target/site/jacoco/index.htmlfolder.
Make certain that the required versions of Java, Node.js, Maven, and Angular CLI (version 14.1.0) are installed for full compatibility with the project.
- NodeJS v16
- Angular CLI v14
- Java 11
- SpringBoot 2.6.1
- jjwt 0.9.1
- MySQL v8.0
- Maven 3.8.6
- Jest 29.7.0
- Cypress
- JUnit
- Mockito
- jacoco 0.8.5