Skip to content
/ echo Public
forked from ynevet/echo

Echo WebServer - Respond with your input

License

Notifications You must be signed in to change notification settings

ls-ynevet/echo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Echo Server Demo

This project is a web server built using Node.js and Express. It is designed to handle POST requests by responding with the user's message (payload).

This project is tested via SuperTest and Jest.

Instructions

To install all dependencies, run:

npm i

To run the server, execute the following command:

npm run start

Or with watching:

npm run start:watch

Testing

To manually test it, you can use cURL, for example:

curl -X POST -H "Content-Type: text/plain" -d "Hello World" http://localhost:3000/echo

To execute tests, run:

npm run test

Make sure to run these commands in the root directory of the project.

About

Echo WebServer - Respond with your input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%