new test push
Clone the repo and run
bash deploy.sh
curl -X POST http://localhost:3001/users/register -H "Content-Type: application/json" -d '{"name":"test", "email":"[email protected]", "password":"1234"}'
curl -X POST http://localhost:3001/users/login -H "Content-Type: application/json" -d '{"email":"[email protected]", "password":"1234"}'
curl -X POST http://localhost:3002/product/create -H "Content-Type: application/json" -d '{"name":"New Product", "description":"A new product description", "price":99.99}'
curl -X POST http://localhost:3002/product/buy -H "Content-Type: application/json" -d '{"ids":["668b7c6ca8b30a0fe3823a72"]}'
curl -X POST http://localhost/users/login -H "Content-Type: application/json" -d '{"email":"[email protected]", "password":"1234"}'
curl -X POST http://localhost/users/register -H "Content-Type: application/json" -d '{"name":"test", "email":"[email protected]", "password":"1234"}'
curl -X POST http://localhost/product/create -H "Content-Type: application/json" -d '{"name":"Toothbrush", "description":"Brush your teeth", "price":10}'
curl -X POST http://localhost/product/buy -H "Content-Type: application/json" -d '{"ids":["668b7c6ca8b30a0fe3823a72"]}'