UMN-LATIS / bluesheet

Track membership and roles within various groups, committees, taskforces, and departments at UMN.
1 stars 0 forks source link

Bluesheet

Track membership and roles within various groups, committees, taskforces, and departments at UMN.

Set Up

Blue Sheeet uses Laravel's docker environment, Laravel Sail for development.

Prereqs:

To get started:

# Create a .env file
cp .env.example .env

# Install php dependencies
composer install

# Start Sail
sail up

# create app key, link storage, etc
sail exec app ./bin/ci.sh

# migrate the database
sail artisan migrate:fresh --seed

# Install node modules
yarn install

# Start Vite
yarn dev

The application will be running on http://localhost.

Using the Application

sail up
yarn dev

Load http://localhost in your browser.

Login with:

Additional users can be configured in config/shibboleth.php.

Stop the application: sail down.

Local Development with Bandaid

Some features of BlueSheet require access to Bandaid API (e.g. the Faculty Leaves Planning Report page).

To connect to Bandaid for local development:

  1. Connect to UMN VPN.
  2. Login to https://cla-bandaid-prd-web.oit.umn.edu/admin
  3. In Bandaid, add a new API Token for your user: Users > username > Edit > Add Token.
  4. Add the token in .env as BANDAID_KEY=<your token>
  5. Get your VPN ip address from https://z.umn.edu/ip
  6. Add your ip address to Bandaid's Allow List. (You'll need to do this each time your ip address changes. Be sure to remove the old ip address from the list.)

Deploy

Enviroment Name URL
dev https://cla-groups-dev.oit.umn.edu
stage https://cla-groups-tst.oit.umn.edu
prod https://cla-groups-prd.oit.umn.edu
./vendor/bin/dep deploy <environment name>

Documentation

BlueSheet documentation is in the docs folder, and published at https://umn-latis.github.io/bluesheet/. It uses VitePress for static site generation.

To develop locally:

cd docs
yarn install
yarn docs:dev

Building the documentation:

cd docs
yarn docs:build

and publishing:

cd docs
yarn docs:publish