update readme and listen port 8080
This commit is contained in:
parent
f4d46a961b
commit
6274a72fb6
|
@ -47,10 +47,9 @@ $ npm start;
|
||||||
### Test the API
|
### 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'.
|
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).
|
> When called in a browser you will get a simple web page that is the representation of the results (with images).
|
||||||
>
|
>
|
||||||
|
|
|
@ -15,5 +15,5 @@ server.on('clientError', (err: Error, sock: Socket) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// 3. listen on given port
|
// 3. listen on given port
|
||||||
server.listen(8000);
|
server.listen(8080);
|
||||||
printf('+ listen 8080\n')
|
printf('+ listen 8080\n')
|
Loading…
Reference in New Issue