nodejs basic course to startup a project
PORTport number of the app
docker build -t test-course .docker run -p 5000:5000 test-course
- Create a message with:
curl -X POST -H "Content-Type:application/json" http://localhost:5000/messages -d '{"text":"We need a new plague."}'
- Delete a message with:
curl -X DELETE -H "Content-Type:application/json" http://localhost:5000/messages/1
- Create a message with:
- URL: http://localhost:5000/messages
- Method: POST
- Body: raw + JSON (application/json)
- Body Content:
{ "text": "Hello there!" }
- Delete a message with:
- URL: http://localhost:5000/messages/1
- Method: DELETE