Crawler tin tức theo chủ đề từ các trang báo sử dụng Nestjs + Mongodb
- Các config được lưu trong file .env
- Sửa .env.example thành .env
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
- Api lấy 10 tin mới nhất theo 1 chủ đề: [GET] /article?topic=${topic} (topic format theo slug)
- Api crawl từ các trang báo : [POST] /crawler (Thư mục module api: /src/crawler)
- Event name lấy 10 tin mới nhất theo 1 chủ đề : ('get-article', { topic: ${topic} })