From 6274a72fb64a38844ccd37bbe27caaaf95d06f7e Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 19 Nov 2018 14:29:11 +0100 Subject: [PATCH] update readme and listen port 8080 --- README.md | 5 ++--- src/main.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 768fa8a..8db6342 100644 --- a/README.md +++ b/README.md @@ -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). > diff --git a/src/main.ts b/src/main.ts index 2e0f1dd..a3aec76 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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') \ No newline at end of file