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.
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen 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.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.
- Set up an API_KEY for Open AI: Go to https://platform.openai.com/api-keys, click "Create a secret key."
- Set up an Open AI file vector: Go to https://platform.openai.com/storage/vector_stores and do create a new file vector.
- Upload the file
questions.jsonat the root directory of this repo into the file vector, do attach. - 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.