gregsadetsky / rctv

https://rctv.recurse.com
4 stars 2 forks source link

RCTV

what is this

an IRL tv dashboard at the Recurse Center with "tv apps" to bridge the physical-virtual schism

how to dev (backend)

first time:

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

every time:

source venv/bin/activate
python manage.py runserver

how to dev (sdk / frontend app javascript) - short version

  1. make sure that bun is installed, see sdk/README.md for more details

from repo dir:

cd sdk
bun watch
  1. you will also need to run the vite bundler in parallel for app.html frontend scripts

first time:

cd core/static_src
npm install

then every time - from repo dir:

cd core/static_src
npm run dev
  1. we're not done...

raspi things

deployment

https://rctv.recurse.com

TODO/docs