Visit the App! (I no longer host it)
Read the detailed blog post on Towards Data Science!
- Clone the repository
git clone https://github.com/Deffro/random-dose-of-knowledge.git
- Create a virtual environmental. For example with anaconda/miniconda
conda create -n rdok python=3.8
conda activate rdok
- Install packages
pip install -r requirements.txt
- Navigate to app/utils/reddit_api.py and change SECRET_KEY, CLIENT_ID, REDDIT_USERNAME, and REDDIT_PASSWORD to your own (line 63). For the password, you have to create a pswd.txt inside the utils folder.
Done! Go to localhost:8000 to see the app
- Install docker.
- Go to the directory where Dockerfile is
docker build -t rdok:1.2 .
(don't forget the dot)- docker run --name rdok -d -p 80:8000 rdok:1.2
Done! Go to localhost:80 or just localhost to see the app
I have written the process in full details here.