To run this project using Docker, follow the steps below:
Ensure you have Docker and Docker Compose installed on your system. Refer to the Docker installation guide for assistance.
-
Clone the repository and navigate to the project directory:
git clone https://github.com/ssahibsingh/React_E-Commerce cd React_E-Commerce -
Build and start the application using Docker Compose:
docker-compose up --build
-
Access the application in your web browser at
http://localhost:3000.
- The application runs on Node.js version
22.13.1-slimas specified in the Dockerfile. - The application exposes port
3000for HTTP traffic. - Modify the
docker-compose.ymlfile to adjust configurations as needed.
- Ensure no other services are using port
3000on your host machine to avoid conflicts. - For production deployment, consider using a reverse proxy and secure the application with HTTPS.
For further assistance, refer to the Docker documentation.