Brief description of the cron job project.
The Cron Job Project aims to run automated tasks (cron jobs) on an Express.js application using GitHub Actions. The implemented cron job tasks can be scheduled to run periodically according to the specified cron scheduling.
- Clone this repository to your local machine.
- Ensure you have Node.js installed on your computer.
- Open a terminal and navigate to the project directory.
- Run the command
npm install
to install all project dependencies.
Before running the cron job, make sure to configure the cron scheduling according to your needs.
- Open the
.github/workflows/cron-job.yml
file. - In the
schedule
section, adjust the cron scheduling to fit your requirements. For example,'0 12 * * *'
will run the cron job every day at 12:00 PM. - Save the changes to the file.
After following the installation and configuration steps, the cron job will be executed automatically according to the specified scheduling. The execution results of the cron job will be displayed in the execution log on the Actions tab in this GitHub repository. If you want to test go on
run node cron.js
command in terminal to start server.