Balancer is a website of digital tools designed to help prescribers choose the most suitable medications for patients with bipolar disorder, helping them shorten their journey to stability and well-being
You can view the current build of the website here: https://balancertestsite.com
Balancer is a Code for Philly project
Join the Code for Philly Slack and introduce yourself in the #balancer channel
The project kanban board is on GitHub here
The Code for Philly Code of Conduct is here
Get the code using git by either forking or cloning CodeForPhilly/balancer-main
Tools used to run Balancer:
OpenAI API
: Ask for an API key and add it toconfig/env/env.dev
Anthropic API
: Ask for an API key and add it toconfig/env/env.dev
Tools used for development:
Docker
: Install Docker DesktopPostman
: Ask to get invited to the Balancer Postman teambalancer_dev
npm
: In the terminal run 1) 'cd frontend' 2) 'npm install' 3) 'cd ..'
Running Balancer:
- Start Docker Desktop and run
docker compose up --build
- The email and password are set in
server/api/management/commands/createsu.py
- Download a sample of papers to upload from https://balancertestsite.com
Running pgAdmin:
- The email and password of
pgAdmin
are specified inbalancer-main/docker-compose.yml
- The first time you use
pgAdmin
after building the Docker containers you will need to register the server. TheHost name/address
,Username
andPassword
are specified inbalancer-main/docker-compose.yml
HOSTNAME="balancertestsite.com"
LOCAL_IP="127.0.0.1"
# Check if the correct line already exists
if grep -q "^$LOCAL_IP[[:space:]]\+$HOSTNAME" /etc/hosts; then
echo "Entry for $HOSTNAME with IP $LOCAL_IP already exists in /etc/hosts"
else
echo "Updating /etc/hosts for $HOSTNAME"
sudo sed -i "/[[:space:]]$HOSTNAME/d" /etc/hosts
echo "$LOCAL_IP $HOSTNAME" | sudo tee -a /etc/hosts
fi
Inside root dir of balancer
devbox shell
devbox create:cluster
devbox run deploy:balancer
The website should be available in https://balancertestsite.com:30219/
The Balancer website is a Postgres, Django REST, and React project. The source code layout is:
Balancer is licensed under the AGPL-3.0 license