This repository contains a prototype of the backend service meant to be used to demo the QI Dashboard.
You will need to:
-
Meet some basic Vagrant requirements
-
Generate a GitHub personal access token and provide it in your
provisioning/secrets.yml
file. No scopes need to be selected on the token generation page.
Typing vagrant up
will download a CentOS 7 VM and deploy the service.
The same VM mentioned above can be used to build a Docker image and run containers.
sudo docker build -t avtar/qi-dashboard-backend .
sudo docker run \
-d \
-p 3000:3000 \
--name="qi-dashboard-backend" \
-e QI_DASHBOARD_BACKEND_TCP_PORT=3000 \
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your token here> \
avtar/qi-dashboard-backend
Adding a -e CONTAINER_TEST=true
option will test the running service. The test requires internet access since a request is made to a GitHub API endpoint.