A full-stack application for image searching, built with Spring Boot (backend) and Angular (frontend).
Before you begin, make sure the following tools are installed on your machine:
- ✅ Java 17+
- ✅ Maven
- ✅ Node.js + npm
- ✅ Angular CLI
(Install via:npm install -g @angular/cli
)
Before running the application, make sure to set up your environment variables. There is no .env
file in the GitHub repository, so you need to manually provide the following variables:
- Create a
.env
file in thebe/
folder (or set them directly in your system environment). - Add the necessary environment variables, such as AWS keys, etc.
Example:
AWS_ACCESS_KEY=...............
AWS_SECRET_ACCESS_KEYE=.......
💡 If you're using IntelliJ IDEA, you can also set these variables in the run configuration.
- In the
fe/
folder, create a.env
file or configure environment variables as needed. - Set any necessary variables for the Angular app, like the backend API URL.
Example:
ANGULAR_APP_API_URL=http://localhost:8080/api
💡 If you're using Angular CLI, you can also use angular.json
to set up environment-specific variables (e.g., for production or development).
📁 Navigate to the be/
folder:
cd be
./mvnw spring-boot:run
💡 Or open the project in IntelliJ IDEA and run the class with @SpringBootApplication
.
📁 Navigate to the fe/
folder:
cd fe
📦 Install dependencies:
npm install
🚀 Start the Angular application:
ng serve
🌐 Done!
- ✅ Backend is running at:
http://localhost:8080
- ✅ Frontend is available at:
http://localhost:4200