From 399f2a77f22d4b3510d7d10f60c829d8793d4d19 Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Wed, 31 Aug 2022 19:03:24 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20add=20setup=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c78c1aa..1c054a5 100644 --- a/README.md +++ b/README.md @@ -8,20 +8,38 @@ ## Scripts -1. [main.py](https://github.com/developersIndia/deviras/blob/main/main.py) - - Used for changing the text below total members & live members count in a subreddit +### [main.py](https://github.com/developersIndia/deviras/blob/main/main.py) + +Used for changing the text below total members & live members count in a subreddit. - ![r/developersIndia About widget](https://user-images.githubusercontent.com/34342551/185678556-e4c911c9-fb12-49da-9ca6-8f8ce2ad9b5a.png) +![r/developersIndia About widget](https://user-images.githubusercontent.com/34342551/185678556-e4c911c9-fb12-49da-9ca6-8f8ce2ad9b5a.png) -## Tests +## Setup -To run the tests, simply run the following command in the Python virtual environment: +1. Clone the repo -```bash -$ python -m unittest -``` + ```bash + git clone https://github.com/developersIndia/deviras.git + ``` +2. Initialise a virtual environment. -## Resources + ```bash + cd deviras + python3 -m venv venv + source venv/bin/activate + ``` +3. Install dependencies + + ```bash + pip install -r requirements.txt + ``` +4. To run the tests, use the following command in a python virtual environment: + + ```bash + python -m unittest + ``` + +## Resources & Learning Material - [PRAW Docs](https://praw.readthedocs.io/en/stable/code_overview/other/idcard.html)