This is a Node.js script that checks for new or updated resources on the Travelski API and sends email notifications when new resources are found.
- Node.js (v14 or higher)
- npm (v6 or higher)
- A Gmail account with "App Passwords" (to send email notifications)
- Clone the repository or download the ZIP file and extract its contents.
git clone https://github.com/MRakox/Travelski.git
- Install the dependencies
cd travelski-resource-monitor
npm install
- Copy the
config.example.json
file toconfig.json
and edit it to include your Gmail account details, the email recipient address, and the API endpoint URL.
cp config.example.json config.json
- Run the application
npm start
The application will check for new or updated resources every 12 hours and send an email notification for each new or updated resource.
The config.json
file contains the following properties:
email
: An object containing theuser
andpassword
of the Gmail account that will send the email notifications. And therecipient
, the email address of the recipient of the email notifications.apiUrl
: The URL of the Travelski API endpoint to check for new resources.
This project is licensed under the MIT License.