We are a group of 4 University of Waterloo Math and CS students. This project was made for the MetHacks 2023 hackathon. narratorRL targets the challenges issued by the following companies: Cohere, Domain.com, and Microsoft Cloud.
The backend of the server projects uses Python's Django framework to serve a RESTful API. The frontend is a React Native application with JavaScript.
Note: to install and use narratorRL, you must set up BOTH the React Native app and the Django server.
- Clone this repository and optionally create a virtual environment
- Install the dependencies with
pip install -r requirements.txt
- Add a file named
env.py
in theserver
directory- Generate a Django secret key (see command below) and set it to
DJANGO_SECRET_KEY
- Add a Cohere secret key to
COHERE_SECRET_KEY
- Generate a Django secret key (see command below) and set it to
- Install Tesseract OCR (for all users by default, or you'll need to change the command path variable)
- Add your device's IPv4 address to
ALLOWED_HOSTS
inserver/settings.py
- Start the server with
python manage.py runserver 0.0.0.0:8000
from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())
- Enter the
mobile
directory - Install the dependices with
npm install
- Add your device's IPv4 address to the
fetch
command inmobile/Home.js
- Start Expo with
npx expo start
- Connect however you wish