This repository contains a full-stack web application built with Spring Boot (backend) and React (frontend).
Before you begin, ensure you have met the following requirements:
- Java 21 or higher
- Maven 3.9.5 or higher
- Node.js v20.12.2 or higher
- Docker (if you want to use Docker)
- Navigate to the database directory:
cd database
- Start the MySQL database:
docker-compose up -d
-
Navigate to the backend directory:
cd data-service
-
Build the project:
./mvnw clean install
-
Run the Spring Boot application:
./mvnw spring-boot:run
The backend server will start on
http:https://localhost:8080
.
-
Navigate to the frontend directory:
cd sentiment-analysis
-
Install dependencies:
npm install
-
Start the React application:
npm start
The frontend application will start on
http:https://localhost:3000
.
-
Navigate to the backend directory:
cd sentiment-service
-
Build the backend Docker Image:
./mvnw clean compile jib:build
-
Navigate to the frontend directory:
cd sentiment-analysis
-
Build and run the backend image:
docker build -t <username>/<image-name> .
-
Tag and push the backend image:
docker push <username>/<image-name>
-
Tag and push the frontend image:
docker push <username>/<image-name>
-
Navigate to the root directory:
cd sentiment-analysis-NLP
-
Start the application:
docker-compose up -d
The application will start on
http:https://localhost
.
- Backend API:
http:https://localhost:8080
- Frontend UI:
http:https://localhost:3000