sipb / class_group_chats

Join your group chats for your MIT classes.
0 stars 0 forks source link

MIT class group chats for Matrix

This web application is part of the SIPB Matrix project. For other GitHub repos in this project, see sipb/uplink.

Get involved

If you want to get involved with this project, shoot an email to matrix@ !

Environment variables needed

You need to have Oracle Data Warehouse installed / in use by following the instructions in https://github.com/psvenk/fireroad-warehouse.

In order to use this project, you need to set the following environment variables in .env:

It is also important to set the LD_LIBRARY_PATH and ORACLE_HOME so that the Oracle software works. This cannot be done in .env, so you need to set it prior to running the application, e.g.:

export ORACLE_HOME="/home/rgabriel/Projects/uplink/data_warehouse/instantclient_21_13"
export LD_LIBRARY_PATH=$ORACLE_HOME # since mine was empty, no need to append
npm run dev

Developing

Once you've installed dependencies with npm install (or pnpm install or yarn), start a development server:

Note: the Matrix dependency prefers yarn, but npm seems to work fine.

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

Pushing to production

local$ git push
local$ ssh uplink@uplink
uplink@uplink$ sudo su subjects
subjects@uplink$ cd ~/class_group_chats
subjects@uplink$ git pull
subjects@uplink$ npm run build
subjects@uplink$ exit
uplink@uplink$ sudo systemctl restart subjects