App built using types-ddd
v3 Link Here
A minimum project to test the domain driven design lib
- Install deps
$ yarn install
- Run the tests
$ yarn test
- Run the app
$ yarn dev
- Open your browser
# List products
$ curl http://localhost:3000/products | jq '.'
# Create Product
$ curl -X POST -H "Content-Type: application/json" \
-d '{ "name": "valid name", "price": 21.00 }' \
http://localhost:3000/products | jq '.'
# Update Product
$ curl -X PUT -H "Content-Type: application/json" \
-d '{ "name": "new name", "price": 42.00 }' \
http://localhost:3000/products/:id | jq '.'