Time clock software that runs on a tablet, meant for employees to walk up to and type in their employee ID number to punch in or out. Managers can then log into the admin area and see total hours between dates.
Client: is a web app that you type in your employee ID number. Recommended to place on a tablet and mount on the wall. Also contains the admin area where management can view hours worked.
Server: is a server that sends a Rest API and receives data to communicate with MongoDB.
Install NodeJS and MongoDB [Windows] Run win_dev.bat. [MacOS] Open Terminal.app in this directory, type chmod +x ./mac_dev.sh then ./mac_dev.sh.
Client should be hosted with HTTPS. This will allow you to use PWA to install the app on a tablet or PC. You should use a Chromium based web browser to install it on a PC. For Android devices, visit the web app, tap the three-dot overflow menu in the top-right corner and then select Add to home screen. For iOS devices, open Safari, browse to the web app, tap the Share button, scroll down and tap Add to Home Screen.
- Install IISNode and NodeJS on the server.
- Run
%programfiles%/iisnode/setupsamples.bat. - Place
timeclockfolder (located in server directory) into the%programfiles%/iisnode/wwwdirectory. - Navigate to the message directory, right click on
WINDOWS INSTALL SERVICE.batand select Run as administrator. - Check Services for
node timeclock serverto ensure it's running.
- Install node - https://nodejs.org/en/download/package-manager/
- Open terminal, type commands:
npm install node-linux
npm install pm2 -g
- Place
timeclockfolder (located in server directory) into a directory. - Navigate to the timeclock directory, type commands:
node install-linux-service.js
sudo service timeclock start
sudo chkconfig timeclock on
pm2 start main.js
pm2 startup
pm2 save