This is a Spring Boot application for managing tasks. It provides a RESTful API for creating, updating, and deleting tasks. Additionally, it includes Docker and Jenkins files for containerization and continuous integration.
- Create, update, and delete tasks.
- Retrieve a list of tasks.
- Task priority and due date management.
- Spring Boot: The application is built using the Spring Boot framework, which simplifies the development of Java-based applications.
- Maven: This project is built and managed using Maven, making it easy to manage dependencies and build the application.
- Docker: Docker files are included to containerize the application, allowing for easy deployment and scalability.
- Docker Compose: Docker Compose is used to define and run multi-container Docker applications.
- Jenkins: Jenkins files are included for setting up continuous integration and continuous deployment (CI/CD) pipelines.
Follow these steps to get the application up and running:
-
Clone this repository to your local machine:
git clone https://github.com/sohitdeveloper/spring-boot-todo-docker
-
Build the Maven project:
mvn clean install
-
Run the application using Maven:
mvn spring-boot:run
-
Access the application at
http://localhost:8080
in your web browser.
Docker files are included in this repository for containerizing the application. To build and run the Docker container, follow these steps:
-
Ensure you have Docker installed on your machine.
-
Build the Docker image:
docker build -t task-be .
Docker Compose is used to manage the application and its dependencies as a multi-container Docker application. To run the application and its required services using Docker Compose:
-
Ensure you have Docker Compose installed on your machine.
-
Navigate to the project root directory containing the
docker-compose.yml
file. -
Run the following command to start the application and its dependencies:
docker-compose up
This will start the Spring Boot application and any other services defined in the docker-compose.yml
file.
Jenkins files are included for setting up continuous integration and deployment pipelines. To set up Jenkins for this project:
-
Install Jenkins on your server or local machine.
-
Create a new Jenkins pipeline job and configure it to pull the project from your Git repository.
-
Use the provided
Jenkinsfile
to define the pipeline stages, including building and deploying the application. -
Run the Jenkins job to trigger the pipeline.
If you would like to contribute to this project, please follow the standard Git workflow:
-
Fork the repository.
-
Create a new branch for your feature or bug fix.
-
Make your changes and commit them with clear, concise commit messages.
-
Push your branch to your fork.
-
Create a pull request to merge your changes into the main repository.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or issues, please feel free to contact the project maintainers:
Thank you for using the Spring Boot Task Management Application!