Skip to content

MickaelBZH/viedemerde-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vie de Merde REST API

This example uses the following:

Start and launch the application

docker-compose build
docker-compose up
http://localhost:9000/api/posts
http://localhost:9000/api/posts/[ID]

Fetch the 200 newest posts from viedemerde.fr

To fetch the newest posts, you can run:

docker-compose run scraper scrapy crawl viedemerde

Run API unit tests with scalatest

docker-compose run restapi sbt test

Possible improvements

  • Scraper parsing tests
  • API tests with mock data
  • Abstraction of DB call from the container

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published