Skip to content

ngoxuanchien/sentiment-analysis-NLP

Repository files navigation

sentiment-analysis

This repository contains a full-stack web application built with Spring Boot (backend) and React (frontend).

Prerequisites

Before you begin, ensure you have met the following requirements:

Getting Started

Database Configuration

  1. Navigate to the database directory:
    cd database
  2. Start the MySQL database:
    docker-compose up -d

Backend (Spring Boot)

  1. Navigate to the backend directory:

     cd data-service
  2. Build the project:

    ./mvnw clean install
  3. Run the Spring Boot application:

    ./mvnw spring-boot:run

    The backend server will start on http:https://localhost:8080.

Frontend (React)

  1. Navigate to the frontend directory:

    cd sentiment-analysis
  2. Install dependencies:

    npm install
  3. Start the React application:

    npm start

    The frontend application will start on http:https://localhost:3000.

Running the Application with Docker

Building backend Docker Images

  1. Navigate to the backend directory:

     cd sentiment-service
  2. Build the backend Docker Image:

    ./mvnw clean compile jib:build

Building frontend Docker Images

  1. Navigate to the frontend directory:

    cd sentiment-analysis
  2. Build and run the backend image:

    docker build -t <username>/<image-name> .

Pushing Docker Images to Docker Hub

  1. Tag and push the backend image:

    docker push <username>/<image-name>
  2. Tag and push the frontend image:

    docker push <username>/<image-name>

Running the Application with Docker Compose

  1. Navigate to the root directory:

    cd sentiment-analysis-NLP
  2. Start the application:

    docker-compose up -d

    The application will start on http:https://localhost.

Accessing the Application

  • Backend API: http:https://localhost:8080
  • Frontend UI: http:https://localhost:3000

Additional Information

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages