Skip to content

natriumpt/express-catchall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Catch-All

Quick and dirty Express server to help debug API calls.

What it does?

Binds an http server to a specified port (3000 by default.)

How to use

  1. Have NodeJS already installed.
  2. Run yarn
  3. Run yarn start or yarn start <port>
  4. Point the request to the server.

Expected output

$ yarn start 3000
Listening at http://localhost:3000
{
  url: '/my-example-api/123/users/active',
  method: 'GET',
  headers: {
    accept: 'application/json, text/plain, */*',
    'user-agent': 'axios/0.21.1',
    host: 'localhost:3000',
    connection: 'close'
  }
}

About

Quick and dirty Express server to help debug API calls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published