To run
- Run
npm install
- Run
npm run dev
To test
- Run in a new terminal
curl http://localhost:6000/api/posts
- Run in a new terminal
curl -X POST -H "Content-Type: application/json" --data '{"title": "New Post","body": "This is a new post"}' http://localhost:6000/api/posts