MongoDB + ExpressJS + SocketIO + SwiftUI
- Install docker desktop https://www.docker.com/products/docker-desktop
- Login Docker
docker-compose up -build
- Check
http://localhost:8081
for DB GUI andhttp://localhost
for apis (cannot get )
Fetch code: GET | http://localhost/create_code?username=1
Make payment: GET | http://localhost/make_payment?store_id=1&amount=1234&code=9000013685385798
- Build with Xcode
- Enter any username then connect to
localhost
- Refresh to get new bar code
- Try
/make_payment
in url to finish current code