An app to allow staff to check in via a tablet at the entrances of the building.
The app also has an admin section that allows an admistrator (in a group that matches O365_ADMIN_GROUP_ID) to report and export unexplained absences.
Requirements
- nodemon
npm install -g nodemon
- Azure CLI
npm install -g azure-cli
npm install
bower install
- Create a local MySQL database. Record connection details.
- Create
.env
file in this directory. Add key-value pairs to match required server/API configs.RDS_HOSTNAME=* RDS_USERNAME=* RDS_PASSWORD=* RDS_DB_NAME=* API_KEY=* COOKIE_KEY_1=* COOKIE_KEY_2=* COOKIE_KEY_3=* O365_TENANT_ID=* O365_CLIENT_ID=* O365_CLIENT_SECRET=* O365_TOKEN_ENDPOINT=* O365_GROUP_ID=* O365_ADMIN_GROUP_ID="*"
npm run dev
- Visit
http://127.0.0.1:3000/
cf. https://docs.microsoft.com/en-us/azure/app-service-web/app-service-web-nodejs-get-started
- Create MySQL server. Record connection details
- Add all environment variables to "Application Settings" in Azure Portal (see .env above)
- Log in to az using the CLI:
az login
git remote add azure https://asmt3@alertcheckin.scm.azurewebsites.net/alertcheckin.git
git push azure