Front-end to the ASCII generator repo this was forked from.
You can test out the program before v2 here: pic-2ascii.herokuapp.com
v2 will not be pushed to Heroku so as to not incur charges from its Redis To Go addon, which is required for this project to run.
It can be run locally though. You can install it following the instructions below:
-
Clone the repo and navigate to its folder
-
Create a virtual environment
- Install pip if you haven't:
sudo apt install -y python3-pip
- Install Python 3's standard virtual environment library:
sudo apt install -y python3-venv
- Create the virtual environment:
python3 -m venv <your_venv_name>
- Install pip if you haven't:
-
Activate the virtual environment:
source <your_venv_name>/bin/activate
-
Install the application's requirements:
pip install -r requirements.txt
-
Get an Imgur Client ID
- Navigate to https://api.imgur.com/oauth2/addclient
- Get the Client ID
- Paste it here in
imageoperations.py
:
-
Create two instances of bash
-
In the first instance, navigate to the repo's folder
- Activate the virtual environment:
source <your_venv_name>/bin/activate
- Start the redis server:
sudo service redis-server start
- Run the worker:
python worker.py
- Activate the virtual environment:
-
In the second instance,
- Activate the virtual environment:
source <your_venv_name>/bin/activate
- Run the main program:
python main.py
- Activate the virtual environment:
By: