Skip to content

nhk-news-web-easy/nhk-easy-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nhk-easy-task Java CI with Maven codecov

Daily task to fetch and parse news from NEWS WEB EASY, the task runs at 10:00 AM (UTC) every day.

Getting started

Create a MySQL database called nhk and import table structures from init.sql, then run:

docker run -e MYSQL_HOST=ip-address-of-mysql \
  -e MYSQL_USER=your-mysql-user \
  -e MYSQL_PASSWORD=your-mysql-user-password \
  -p 8080:8080 \
  -d xiaodanmao/nhk-easy-task

Or run with Sentry enabled:

docker run -e MYSQL_HOST=ip-address-of-mysql \
  -e MYSQL_USER=your-mysql-user \
  -e MYSQL_PASSWORD=your-mysql-user-password \
  -e SENTRY_DSN=your-sentry-dsn \
  -p 8080:8080 \
  -d xiaodanmao/nhk-easy-task

API

Fetch news

curl --request POST \
  --url http://localhost:8080/fetchNews

License

MIT