This example uses the following:
docker-compose build
docker-compose up
http://localhost:9000/api/posts
http://localhost:9000/api/posts/[ID]
To fetch the newest posts, you can run:
docker-compose run scraper scrapy crawl viedemerde
docker-compose run restapi sbt test
- Scraper parsing tests
- API tests with mock data
- Abstraction of DB call from the container