- Spring Boot
- Spring Data JPA
- Spring Web
- MySQL
- Docker
- Clone the repository
- Open the project in your IDE
- Start the Spring Boot application and MySQL server using Docker Compose
- The application will be running on
http://127.0.0.1:8000
docker compose up --build
- spring.application.name=notes
- spring.datasource.url
- spring.datasource.username
- spring.datasource.password
- spring.datasource.driver-class-name= com.mysql.cj.jdbc.Driver
- spring.jpa.hibernate.ddl-auto=update
- sever.servlet.context-path=/api
- app.jwt.secret
- app.salt
- app.jwtExpirationMs
All the environment variables are stored in the .env
file and all variables are required for the application to run.
Kindly create a .env
file in the root directory of the project and add the above environment variables.