Author - Vageeshan Mankala (LinkedIn)
Problem Statement - fetch-take-home-execercise-SRE
Organizer - Fetch Rewards
- Install python. Install for required operating sysmtem if not already installed. Verified versions for python are [3.10, 3.9, 3.8].
- Clone the repository. (Git Installation Instructions)
git clone https://github.com/vagi8/health-check.git
- Go into project directory.
cd health-check
- 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)
.\myenv\Scripts\activate
source ./myenv/bin/activate
- create a new virtual environment named
- 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.
pip install -r requirements.txt
pip3 install -r requirements.txt
Run the program. Again, this is to be run after activating virtual environment if you are using one.
python main.py
python3 main.py