An app to track attendance at UIUC
MIT License
An app to track attendance at UIUC
Order of Instructions To Be Read for Setting Up The Project
Support will be ranged from Tier 1 - 3, where Tier 1 has the greatest support and Tier 3 has minimal testing at the time of writing this document. Feel free to update information on this if using any environments listed below or an unlisted environment.
Arch Linux install instructions can be found here.
For Ubuntu users wanting to host a database in the Ubuntu environment
sudo apt update
sudo apt install postgresql postgresql-contrib
Windows user can find the installer from here.
Mac users can either use a brew
package (which does not setup a postgres
user needed by the setup scripts in this repository) or use the installer here.
systemctl
To start postgresql
,
sudo systemctl start postgresql.service
To enable the database on boot,
sudo systemctl enable postgresql.service
TODO
TODO
If setting up on an install of postgresql
that has a postgres
user, can simple execute utils/db_setup/psqlInit.sh
If not, simply execute utils/db_setup/dbInit.sql
using the psql
client.
For example,
psql <normal-postgres-args> -a -f utils/db_setup/dbInit.sql
Example of <normal-postgres-args>
-U attendance-adm -d attendance
To populate the newly created database with tables, simply run the webapp as explained in Running the Webserver
.
If you need to drop all tables due to a schema change or any other reason, execute utils/db_utils/dropAllTables.sh
.
npm install
in the newly-cloned directorynpm run dev
Note: there should be no need to do this manually since the Travis CI config .travis.yml
will
Running the Webserver
except the following two pointsnpm start
instead of npm run dev