Fix #47: add mock http server for testing w/o hitting prod site

This commit is contained in:
2024-01-22 18:25:02 +01:00
parent a94ef63a90
commit ec8f0fcac9
11 changed files with 125 additions and 0 deletions

13
t/httproot/README.md Normal file
View File

@@ -0,0 +1,13 @@
# Mock http server
Install ehfs from https://github.com/mjpclab/extra-http-file-server/.
Install p2cli from https://github.com/wrouesnel/p2cli.
Run `templates/render.sh` to build the file structure.
Run `server.sh` to start the http server.
To scrape an ad from it, use such a URL:
http://localhost:8080/s-anzeige/first-ad/111-11-111