update readme and listen port 8080

This commit is contained in:
Adrien Marquès 2018-11-19 14:29:11 +01:00
parent f4d46a961b
commit 6274a72fb6
2 changed files with 3 additions and 4 deletions

View File

@ -47,10 +47,9 @@ $ npm start;
### Test the API
You can now use [Postman](https://www.getpostman.com/) or whatever API client or web browser at `127.0.0.1:8000`. The only allowed request method is **GET** and accepts the research field in a query parameter named 'q'.
The console running the server will provide reactive and real-time details.
Example URL : http://127.0.0.1:8080?q=Nutella that searches for the keyword "Nutella".
Example URL : http://127.0.0.1:8080/?q=Nutella that searches for the keyword "Nutella".
> When called in a browser you will get a simple web page that is the representation of the results (with images).
>

View File

@ -15,5 +15,5 @@ server.on('clientError', (err: Error, sock: Socket) => {
});
// 3. listen on given port
server.listen(8000);
server.listen(8080);
printf('+ listen 8080\n')