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.
To install all dependencies, run:
npm iTo run the server, execute the following command:
npm run startOr with watching:
npm run start:watch
To manually test it, you can use cURL, for example:
curl -X POST -H "Content-Type: text/plain" -d "Hello World" http://localhost:3000/echoOnce executed, you should expect to receive the same message you sent, "Hello World," from the server.
To execute tests, run:
npm run testMake sure to run these commands in the root directory of the project.