Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 874 Bytes

File metadata and controls

31 lines (26 loc) · 874 Bytes

E-Commerce App

Setup

Requirements

  • Node.js 20.9.0
  • Docker and Docker Compose

Backend and Frontend Setup

  1. Clone the project repository:
    git clone <repository-url>
    cd <project-directory>
  2. Configure environment variables:
    • Create the app-backend/.env file and fill in the necessary values.
    • Create the app-frontend/.env file and fill in the necessary values. Example content:
      VITE_API_BASE_URL=http://localhost:3000

Running the Project with Docker

  1. Build and start the Docker containers:
    docker-compose up --build
  2. Access the Frontend application at http://localhost:8080 and the Backend API at http://localhost:3000.

Notes

  • The Backend runs on port 3000 for API requests.
  • The Frontend runs on port 8080.