The Content Upload Service is a microservice developed in Java using the Spring Boot framework. It enables content uploads and carousel processing.
The main structure of the project is as follows:
content-upload-service/
├── src/ # Project source code
├── pom.xml # Maven configuration
├── Dockerfile # Docker file for containerization
├── .gitignore # Version control file
├── mvnw # Maven wrapper
├── mvnw.cmd # Maven wrapper for Windows
└── README.md # Project documentation
Ensure you have the following software installed:
- Java 17+
- Maven
- Docker (optional, for containerization)
In the root directory of the project, run the following command:
mvn clean packageAfter compilation, start the service:
java -jar target/content-upload-service-0.0.1-SNAPSHOT.jarThe application will be available at: http://localhost:8080
Run the following command to build the image:
docker build -t content-upload-service .Run the container with the command:
docker run -p 8080:8080 content-upload-serviceThe service will be accessible at: http://localhost:8080
By default, the service uses port 8080. To change the port, edit the application.properties file:
server.port=8081If you need a custom network, create one using the command:
docker network create my-custom-networkThen run the container in this network:
docker run --network my-custom-network -p 8080:8080 content-upload-service- Java 17
- Spring Boot 3.4.0
- Maven
- Docker
Feel free to contribute to the project! To do so:
- Fork the repository.
- Create a branch for your feature (
git checkout -b feature/new-feature). - Commit your changes (
git commit -m 'Added new feature'). - Push to the branch (
git push origin feature/new-feature). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more information.