random-dose-of-knowledge
random-dose-of-knowledge copied to clipboard
Using the latest Software Engineering practices to create a modern and simple app.
Random Dose of Knowledge
Visit the App! (I no longer host it)
Read the detailed blog post on Towards Data Science!
Frameworks/Software/Technologies/Platforms used:
You want to run the app locally by yourself
- 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
You also want to dockerize it
- 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
You also want to deploy it on AWS
I have written the process in full details here.