The Node.js application will mark the punch in/out at the desired time.
Copy env file as .env and update the required parameters by below the command.
cp .env.example .envTo Install the Docker run the below command in Ubuntu. For more visit the Docker's install page
To install the NVM, run the below command. For more info visit the NVM's docs
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bashInstall the Node.js by using the below command.
nvm installnvm useInstall the dependencies by using the below command.
npm installRun the below command to run the PostgreSQL through Docker.
docker compose up -dnpx sequelize-cli db:migrateRun the application by using the below command
npm run devTo build and run the application as container through Docker run the below command.
docker compose --profile prod up -d --build
docker-compose exec app npx sequelize-cli db:migrate