Skip to content

Latest commit

 

History

History

01-get-with-params

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

node-microservices-example

Using HTTP GET (with parameters)

The main goal here is coding a microservices example using Node and JavaScript

How to run the code

Run this command in the console:

npm start

If everything is okay, you'll see this message:

Server started on port 3000

How to test the code
You can also use the terminal :)

curl http://localhost:3000/books/1

You'll see:

{"id":"1","title":"Code Complete 2nd Edition","author":"Steve McConnell","year":"2004"}

If you don't like the terminal you can use Postman :D