git clone https://github.com/UBC-LFS/equipment-check-in-out-status
cd equipment-check-in-out-status
npm install
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"
npm run dev
npm run production
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> .
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
.
# get container id from list
docker ps
# print output to stdout
docker logs <container_id>