Backend for a real-time translation chat app
- Download and install Redis. If configured correctly then the command
redis-server
will start redis - Need to have python3 installed
- Clone this repository and enter it
- Create a python virtual environment with
python3 -m venv venv
. - Activate virutal environment with
. venv/bin/activate
- Install python requirements
pip3 install -r requirements.txt
- Use the command
gunicorn -k flask_sockets.worker -b localhost:5000 main:app
to start the server
If done right, the server will start and will be up and running at http://localhost:5000/
When the server has started, you can monitor the logs in your terminal. Since the backend is still flaky and unreliable it may start acting up or having weird behavior. If this happens go to http://localhost:5000/reset which will automatically reset the state of the backend