Skip to content

Display the status of checked in out equipment from Qualtrics survey

Notifications You must be signed in to change notification settings

UBC-LFS/equipment-check-in-out-status

Repository files navigation

Equipment Status Visualizer

JavaScript Style Guide

Installation

git clone https://github.com/UBC-LFS/equipment-check-in-out-status
cd equipment-check-in-out-status
npm install

Add .env file

Create a .env file and specify the following:

QUALTRICS_API_DOMAIN=https://yourdatacenterid.qualtrics.com/API/v3/
QUALTRICS_API_TOKEN=YOUR_QUALTRICS_TOKEN
SURVEY_NAME="THE SURVEY NAME"

Development mode

npm run dev

Production mode

npm run production

Create Docker image

Make sure to create a .env file with the required environment variables and run npm run client-build before building the image.

Both the .env file and the static files generated by the client build will be copied over during the image build process and are required for the app to run correctly.

To build the Docker image, run the following command:

# <your tag> will be used to refer to the image once created 
docker build -t <your tag> .

Run Docker image

To run the docker image, run the following command:

docker run -p 4000:4000 -d <your tag>

The -p option maps the container port 4000 to the local port 4000, and the -d option runs the container in detached mode. Once the Express server starts, the app will be available at http://localhost:4000.

Print app output

# get container id from list
docker ps 

# print output to stdout
docker logs <container_id>

About

Display the status of checked in out equipment from Qualtrics survey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published