Skip to content

CampusPulse/access-directory

 
 

Repository files navigation

CampusPulse Access

An interactive catalog of accessibility devices on RIT's campus by maintenance status

This is a fork of TunnelVision

Running Locally

(Reach out to a maintainer of this repo for credentials for the dev database)

  • Fork the repo and run the following commands in that directory:
  • Install uv (if you dont already have it installed)
  • cp sample.env compose.env
  • [podman or docker] compose up (this starts up the database and minio for S3)
  • uv run python3 app.py (this runs the app in development mode)

Database Schema

This project uses SQLAlchemy to access a PostgresQL database. The DB schema is defined in db.py

This project also uses flask-migrate to allow for database schema revisions

to create a new revision: uv run flask db revision --autogenerate -m "[message]"

to upgrade your schema: uv run flask db upgrade

Docker Infrastructure:

The docker compose config in this repository is intended to provide a small/simple suite of services for TunnelVision to rely on. This is for development and testing purposes.

To use this suite:

  1. create a file called compose.env in the root of the repository. Use the following template to get started:
MINIO_ROOT_USER=
MINIO_ROOT_PASSWORD=
POSTGRES_USER=
POSTGRES_PASSWORD=
  1. fill in appropriate values
  2. docker compose up
  3. navigate to http://localhost:9001, log in with the root credentials for minio specified above, add create a bucket for TunnelVision
  4. while still in the minio console, navigate to "access keys" on the left and create an access key and secret for tunnelvision to use.
  5. Provide the the information to TunnelVision
    • S3 url: http://localhost:9000
    • the s3 secret and key you generated
    • S3 bucket name: whatever you created
    • database host: localhost
    • DB user and password: whatever you set in compose.env for postgres
    • DB name: should match the db user by default

About

Source code for RIT accessibility button directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.6%
  • HTML 39.5%
  • Other 0.9%