Project for HackTeck 2019 @ California Institute of Technology. A SMS system to help patients manage chronic medications via a SMS and cellular call reminder system.
The devpost for this project can be found here.
- Django for backend server and SQLite database management.
- React for frontend webpages serving doctors and pharmacists.
- Twilio APIs for patient-facing services.
Requirements:
- Python 3 and Django for backend
- NodeJS and React installed
- Yarn for node package management.
- Redis to be able to run
redis-server
for SMS and Reminder scheduling and brokering. - Ensure that the Huey python library is installed for patient medication reminder scheduling.
- Set-up your Twilio api credentials in a python file called
credentials.py
in project root.`
- Install
virtualenv
and start a virtual environment for managing your python dependencies by runningvirtualenv
and starting it up bysource env/bin/activate
. - Install Dependencies
- Head to the React source code in
frontend
and install all dependencies withyarn
. - In the root folder, run
pip install -r requirements.txt
to install django dependencies. - Run
yarn start
to start the development server onlocalhost:3000
. - After redis-cli is installed, run
redis-server
on the server. - Run ./manage.py run_huey in the root folder to enable task scheduling.
- In the same root directory, run
python manage.py runserver 0.0.0.0:8000
to start the Django server to begin talking to Twilio APIs and serve the react frontend. - Head over to
localhost:3000
to start using the application.
- Install
virtualenv
and start a virtual environment for managing your python dependencies by runningvirtualenv
and starting it up bysource env/bin/activate
. - Install Dependencies
- Head to the React source code in
frontend
and install all dependencies withyarn
. - In the root folder, run
pip install -r requirements.txt
to install django dependencies. - Run
yarn build
to build the static files, CSS, HTML, and Javascript code from the react files. - After redis-cli is installed, run
redis-server
on the server. - Run ./manage.py run_huey in the root folder to enable task scheduling.
- In the same root directory, run
python manage.py runserver 0.0.0.0:8000
to start the Django server to begin talking to Twilio APIs and serve the react frontend. - Head over to
localhost:8000
to start using the application.
This weekend project was made possible and fun with the amazing people below.