- node.js 18
- mongodb 4.7
- koa 10.1.1
- docker 20.10
Set dbUrl
in server.js
Start your mongo DB
docker-compose up -d
curl -i -X POST http://localhost:49060/news -H "content-type:application/json" -d '{ "_id": "10", "date": "10-01-2022", "description": "descr", "text": "text", "title": "titleX" }'
curl -i -X GET http://localhost:49060/news/10 -H "content-type:application/json"
docker-compose down