Skip to content

mtaylor57/insomnia-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing a NodeJS Server with Insomnia

Please head through the following instructions to ensure you will be able to create and start a NodeJS server as well as make requests to it from your local machine once we get into the back end block in a few weeks time.

Don't worry too much about the code in here or if some of the instructions seem ambiguous at this stage as we certainly will be covering it all!

We'd just like to make sure that we won't run into any problems when we get there.

  1. Fork and clone this repository
  2. Change directory - cd insomnia-test
  3. Install node modules - npm install
  4. Start the server listening - npm start
  • You should see the following in your terminal

server-listening

  1. Head into Insomnia and make a GET request to the following address - localhost:9090/test and click Send

example-request

  1. If you see the following response from your server on the right hand side of the Insomnia interface, you're all set!

example-response

  1. Stop the server listening - ctrl + c in the terminal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%