From 0bac5d6d4ef23f7aed3dba8b616604cbdfd838ab Mon Sep 17 00:00:00 2001 From: Shivam Gutgutia <100862487+shivamgutgutia@users.noreply.github.com> Date: Sat, 16 Dec 2023 19:30:13 +0530 Subject: [PATCH] Update README.md Added docker installation steps --- README.md | 71 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 0505267..e9615aa 100644 --- a/README.md +++ b/README.md @@ -25,33 +25,50 @@ The Contact File Backend Service offers a seamless solution for users to upload Follow these steps to set up and run the Contact File Backend Service locally: -1. **Clone the Repository** - - Clone the repository. - ```bash - git clone https://github.com/shivamgutgutia/contactsGeneratorBackend.git - ``` - - Navigate to the cloned directory and run - ```bash - cd contactsGeneratorBackend - ``` - -2. **Install Dependencies** - - Install all required dependencies for running the server on local machine - ```bash - pip3 install -r requirements.txt - ``` - -3. **Configuration** - - Create a `.env` file in the root directory. - - Define environment variables such as: - - `PORT=5000` - -4. **Start the Server** - - Start the backend service - ```bash - python3 app.py - ``` - - The service will be running on `http://localhost:5000` by default. +1. Local Installation + + 1. **Clone the Repository** + - Clone the repository. + ```bash + git clone https://github.com/shivamgutgutia/contactsGeneratorBackend.git + ``` + - Navigate to the cloned directory and run + ```bash + cd contactsGeneratorBackend + ``` + + 2. **Install Dependencies** + - Install all required dependencies for running the server on local machine + ```bash + pip3 install -r requirements.txt + ``` + + 3. **Configuration** + - Create a `.env` file in the root directory. + - Define environment variables such as: + - `PORT=5000` + + 4. **Start the Server** + - Start the backend service + ```bash + python3 app.py + ``` + - The service will be running on `http://localhost:5000` by default. + +2. Docker Installation + + 1. **Pull image** + - Pull the docker image from Docker Hub + ```bash + docker pull shivamgutgutia/contactify:latest + ``` + 2. **Run Container** + - Create and run a container using the image pulled + ```bash + docker run -d -p 5000:5000 shivamgutgutia/contactify:latest + ``` + - The service will be running on `http://localhost:5000`. + ## API Documentation