metal-tracker

所属分类:Docker
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-10-30 21:43:10
上 传 者sh-1993
说明:  用Typescript开发的Docker脚本,用于获取和发送与音乐相关的新音乐会、评论和新闻的电子邮件通知...
(A Docker script developed with Typescript that fetches and sends email notifications for new concerts, reviews, and news related to the metal music from various sources of interest.)

文件列表:
.dockerignore (235, 2023-12-11)
.editorconfig (123, 2023-12-11)
.eslintrc.json (1377, 2023-12-11)
.husky/ (0, 2023-12-11)
.husky/pre-commit (69, 2023-12-11)
Dockerfile (672, 2023-12-11)
package-lock.json (328249, 2023-12-11)
package.json (1631, 2023-12-11)
sqlite/ (0, 2023-12-11)
src/ (0, 2023-12-11)
src/app.ts (2278, 2023-12-11)
src/db.ts (4853, 2023-12-11)
src/domain.ts (439, 2023-12-11)
src/email-client.ts (947, 2023-12-11)
src/index.ts (114, 2023-12-11)
src/integrations.ts (3162, 2023-12-11)
src/migrations/ (0, 2023-12-11)
src/migrations/001-create_initial_tables.sql (666, 2023-12-11)
src/migrations/002-insert_initial_values.sql (221, 2023-12-11)
src/migrations/003-rename_sources_table.sql (46, 2023-12-11)
src/utils.ts (2921, 2023-12-11)
tests/ (0, 2023-12-11)
tests/app.test.ts (6174, 2023-12-11)
tests/utils/ (0, 2023-12-11)
tests/utils/global-setup.ts (109, 2023-12-11)
tests/utils/helpers.ts (3378, 2023-12-11)
tsconfig.build.json (81, 2023-12-11)
tsconfig.json (715, 2023-12-11)
vitest.config.ts (257, 2023-12-11)
... ...

[![codecov](https://codecov.io/github/casantosmu/metal-tracker/graph/badge.svg?token=D2EKM1OD1N)](https://codecov.io/github/casantosmu/metal-tracker) # Metal Tracker Metal Tracker is a script that fetches and sends email notifications for new concerts, reviews, and news related to the metal music from various sources of interest. ## Prerequisites Before running the script, ensure you have the following prerequisites set up: 1. **AWS Account**: You must have an AWS account to use the AWS services required for sending email notifications. 2. **AWS Credentials**: [Configure your AWS credentials](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html). 3. **Amazon SNS Topic**: Create an SNS topic in your AWS account with the list of email addresses to which you want to send notifications. ## Getting Started To execute the Metal Tracker script, follow these steps: 1. Pull the Docker image from the GitHub Container Registry: ```bash docker pull ghcr.io/casantosmu/metal-tracker:main ``` 2. Run the Docker container with the required environment variables: ```bash docker run --rm --name metal-tracker \ -v metal-tracker-db:/app/sqlite \ -e AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID \ -e AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY \ -e AWS_REGION=us-east-1 \ -e SNS_TOPIC_ARN=YOUR_SNS_TOPIC_ARN \ ghcr.io/casantosmu/metal-tracker:main ``` Replace the placeholders with your actual AWS credentials, AWS region, and SNS topic ARN. ## How It Works Metal Tracker automates the following tasks: - **Data Collection**: It fetches data from various sources related to metal music, such as concert listings and music news. - **Data Storage**: The script saves this data in a database to keep track of previously fetched information. - **Notification**: When new data is available, Metal Tracker sends email notifications via Amazon SNS to the specified Amazon SNS topic.

近期下载者

相关文件


收藏者