Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 1.73 KB

File metadata and controls

53 lines (49 loc) · 1.73 KB

Fetch-Take-Home-Exercise-SRE

Author - Vageeshan Mankala (LinkedIn)

Monitor HTTP/S Endpoints

Problem Statement - fetch-take-home-execercise-SRE

Organizer - Fetch Rewards

Installation

  1. Install python. Install for required operating sysmtem if not already installed. Verified versions for python are [3.10, 3.9, 3.8].
  2. Clone the repository. (Git Installation Instructions)
git clone https://github.com/vagi8/health-check.git
  1. Go into project directory.
cd health-check
  1. Create virtual environment using venv.
    • create a new virtual environment named myenv
    python -m venv myenv
    
    • To activate the virtual environment run the following command. make sure to use the use it from the appropriate path. (HINT- the goal is to run a activate script inside the newly created myenv/Scripts directory)

    Windows

    .\myenv\Scripts\activate
    

    Linux / Mac

    source ./myenv/bin/activate
    
  2. Install dependencies. If you are using virtual environment, make sure you activate it before installing the dependencies. pip command is usually installed with python. If not installed please install it.

Windows

pip install -r requirements.txt

Linux / Mac

pip3 install -r requirements.txt

Execution

Run the program. Again, this is to be run after activating virtual environment if you are using one.

Windows

python main.py

Linux / Mac

python3 main.py