"daily-trends" repository is a web application (backend) created with the aim of centralizing news from the most representative newspapers in the country. It follows a solid architecture based on Domain-Driven Design (DDD) principles with the goal of being scalable efficiently and quickly.
BACKEND --> Wait 10 seconds until RENDER service is up
FRONT --> Check it now and you will see lastest news (Now, is needed to wait a little because the scraping process is fired on the fly if any of the news is older than the current day. In a future, it will be fired with an Scheduler but it costs more money in the Cloud Provider)
Node.js --> min v18.16.0 (nvm use)
docker-compose --> to create DDBB instance (test and dev)
$ npm install
# Makefile option
$ make start
# Or
$ npm run up:docker:local # to up Docker with Mongo (docker-compose necessary)
$ npm run dev
# Makefile option
$ make test # Run all tests
# Or
$ npm run up:docker:local # follow we can use whatever of the below commands
# all tests
$ npm run test
# unit tests
$ npm run test:unit
# features e2e (cucumber)
$ npm run test:features
# integration (infrastructure)
$ npm run test:integration
- Implement CQRS (commandBus and queryBus). Commands and Queries will be a handler and middleware between external app (Express.js API) and bounded context. It also allow communication between use cases
- Implement pagination with cursors in MongoDB infrastructure
- Hide GET feed/scrap endpoint and create CRON task for use it ...