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 i
To run the server, execute the following command:
npm run start
Or 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/echo
To execute tests, run:
npm run test
Make sure to run these commands in the root directory of the project.