https://github.com/eveld/nomad-connect-cobol-demo
https://github.com/eveld/nomad-connect-cobol-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eveld/nomad-connect-cobol-demo
- Owner: eveld
- Created: 2019-03-23T18:19:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T16:44:06.000Z (over 2 years ago)
- Last Synced: 2025-02-14T20:57:17.874Z (5 months ago)
- Language: HCL
- Size: 54.9 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
# Run the app...
# The app now listens on port 8080 on localhost.
# In different terminals run:
make nginx
make nomad
make consul
make deploy# Get current balance...
curl http://localhost:8080/accounts/x# Deposit cash...
curl -X POST -d '{"amount": 300}' http://localhost:8080/accounts/x/deposit# Withdraw cash...
curl -X POST -d '{"amount": 300}' http://localhost:8080/accounts/x/withdraw
```