Skip to content

Bill Dong's from-scratch rewrite of the Data Science Internship Dashboard for the Brandeis Health and Wellness Office (Leah Berkenwald)

Notifications You must be signed in to change notification settings

Brandeis-CS-Systems/ncha-dashboard

 
 

Repository files navigation

Intro

This project exists to present a graphical dashboard of the results of the biannual Health and Wellness survey administered to students at Brandeis University and other higher education institutions.

Each institution's private & privileged results are returned to them as SPSS-compatible .sav files. This project requires that those files be converted to CSV files (using an included Python script). Details below.

Tech Stack

This is a Next.js project bootstrapped with create-next-app.

Getting Started (Development)

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Docker

Docker build: docker build -t ncha-dashboard . Docker run: docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e OPENAI_FILE_VECTOR=$OPENAI_FILE_VECTOR -p 3000:3000 ncha-dashboard

Docker run: docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e OPENAI_FILE_VECTOR=$OPENAI_FILE_VECTOR -p 3000:3000 -v /var/app/data:/data ncha-dashboard

Where the $OPENAI_API_KEY should be replaced with an OpenAI's api key, and $OPENAI_FILE_VECTOR should be replaced with the file vector id.

Deployment Instructions (Production)

  1. Set up an API_KEY for Open AI: Go to https://platform.openai.com/api-keys, click "Create a secret key."
  2. Set up an Open AI file vector: Go to https://platform.openai.com/api-keys, go to: storage -> file vectors -> create a new file vector.
  3. Upload the json file (question list) from this project into the file vector, do attach.
  4. Copy the resulting file vector id returned by Open AI.

So now you have the api key and the id of the file vector.

Next, do

docker build -t ncha-dashboard .

For the ncha-dashboard container, do

docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e OPENAI_FILE_VECTOR=$OPENAI_FILE_VECTOR -p 3000:3000 -v /var/app/data:/data ncha-dashboard

to run the docker container.

Where the $OPENAI_API_KEY should be replaced with an OpenAI's api key, and $OPENAI_FILE_VECTOR should be replaced with the file vector id.

About

Bill Dong's from-scratch rewrite of the Data Science Internship Dashboard for the Brandeis Health and Wellness Office (Leah Berkenwald)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.4%
  • Dockerfile 2.9%
  • Other 0.7%