an IRL tv dashboard at the Recurse Center with "tv apps" to bridge the physical-virtual schism
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
create a new postgres database for rctv
# macOS (adapt for your OS)
initdb -A trust /usr/local/var/postgres
# Connect to default DB
psql -U $USER -d -d postgres
# Create a new postgres user for RCTV
# SQL
CREATE USER rctv;
CREATE DATABASE rctv WITH OWNER="rctv";
quit;
# Connection string will be postgres://rctv@localhost:5432/rctv
define an .env
file. Copy from .env.example
and fill in the values inside ""
quotes:
cp .env.example .env
create a Zulip
Bot
(choose Outgoing Webhook Bot), download its zuliprc
file,
and move it to the root of this repository + rename it to .zuliprc
(with a dot at the beginning)
cp ~/Downloads/zuliprc .zuliprc
also! create a django super user for yourself!
python manage.py createsuperuser
# answer admin (username), a@a.ca, admin (password) and 'y' to confirm the bad password
source venv/bin/activate
python manage.py runserver
from repo dir:
cd sdk
bun watch
first time:
cd core/static_src
npm install
then every time - from repo dir:
cd core/static_src
npm run dev
ngrok
and go through these steps so that rctv-dev.recurse.com works & points to your local django localhost:8000