cote-workshop
cote-workshop copied to clipboard
Purchase down issue
If I shutdown the payment-service and then the user buy something, its purchases won't be correctly be sent.
Result in the admin console:
, 2, , , 5
On the Users list.
I had a similar problem where if you click the buy button really fast, it does the same thing.
If you download and run up the docker-compose you will see that the system work fine!
Downloaded cote-workshop-master.zip Unzip to folder. Go inside folder, and "docker-compose up", waiting everything ready... Browse to http://localhost:5000, http://localhost:5001 and http://localhist:5555.
Success to add item in http://localhost:5000. Success to buy in http://localhost:5001, but it was strange because i clicked very fast successively. In the screenshot:
- clicked 10 times
- balance shown correctly (down 10 from $30 to $20)
- purchases shown 11 purchases (should be 10 purchases)
- Stock decreased 5 from 1000 to 995 (stock should be 990)