Skip to content

ddwivedi551/radware-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radware Assignment (React and Express)

This repository contains a full-stack application with a React frontend and an Express backend. The application is containerized using Docker and Docker Compose to ensure seamless development and deployment.

Prerequisites

Before you begin, ensure you have the following software installed on your machine:

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/your-repo-name.git
    cd your-repo-name
  2. Ensure the correct files are in place:

    • Dockerfile in both the server and client directories.
    • docker-compose.yml in the root directory.

Running the Application

To run the application, follow these steps:

  1. Build and Start the Containers:

    Run the following command from the root directory of the project:

    docker-compose up --build

    This command will:

    • Build Docker images for both the server and the client.
    • Start the server container first.
    • The client container will wait for the server to be fully operational before starting.
  2. Wait for the Setup:

    Docker will pull base images, install dependencies, and start the services. This might take a few minutes the first time.

Stopping the Application

To stop the application, use the following command:

docker-compose down

This command stops and removes the containers, but the Docker images remain cached for faster startup next time.

Accessing the Application

Once the application is running, you can access it via your web browser:

  • React Frontend: Available at http://localhost:3000.
  • Express Backend API: Available at http://localhost:3001.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published