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 .env
To 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 | bash
Install the Node.js by using the below command.
nvm install
nvm use
Install the dependencies by using the below command.
npm install
Run the below command to run the PostgreSQL through Docker.
docker compose up -d
npx sequelize-cli db:migrate
Run the application by using the below command
npm run dev
To 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