Before you begin, ensure you have the following installed on your local machine:
- Development
- Frontend: React
- Backend: Node.js, Express and Mongodb
- DevOps
- CI/CD: Github Actions
- Containerization: Docker
You can clone this public repository using the following steps:
-
Open your terminal or command prompt.
-
Navigate to the directory where you want to clone the repository.
-
Run the following command to clone the repository:
https://github.com/majidshakeelshawl/WorkOutBuddy.git
-
Navigate to cloned repo
cd WorkOutBuddy
-
Run following command to install both client and server packages (To run app manually without docker)
npm run install
Once you've cloned the repository, you can run the Dockerized React app using the following steps:
-
Build the Docker image:
docker build -t [Any tag name that you like] .
Eg: docker build -t react-app .
-
Run the Docker container:
docker run -p 3000:3000 [Tag name]
Eg: docker run -p 3000:3000 react-app
-
Open your web browser and access the app at http://localhost:3000.