This project is a simple photo management application built using Java, Maven, and Spring Boot. The application allows users to upload photos, display all uploaded photos, view specific photos, and delete selected photos. It demonstrates the core functionalities of a basic photo gallery and provides an example of how to build a web application using Spring Boot.
- Upload a photo to the gallery
- View all uploaded photos
- View a specific photo by its ID
- Download the photos
- Delete the photos
- Java 21 or higher
- Maven 3.9.8 or higher
git clone https://github.com/Asterdev-03/photoclone.git
cd photoclone
To build the project, use Maven:
mvn clean install
This will compile the code, run tests, and package the application into a JAR file.
After building the project, you can run the Spring Boot application using the following command:
mvn spring-boot:run
The application will start on http://localhost:8080
.
- To view all photos, navigate to
http://localhost:8080
. - To view a specific photo, click on the photo or goto
http://localhost:8080/photoInfo?id={id}
where{id}
is the ID of the photo. - To upload a photo, click on upload button and use the upload form at
http://localhost:8080/upload
. - To download a photo, use the download option on the photo's page.
- To delete a photo, use the delete option on the photo's page.
This project is licensed under the Apache License. See the LICENSE file for details.