-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker compose file and files directory to upload files
- Loading branch information
Tomas
committed
Nov 5, 2018
1 parent
14a3637
commit 5faa6de
Showing
3 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3.3' | ||
services: | ||
blockchain: | ||
tty: true | ||
volumes: | ||
- ../files:/src/files/ | ||
ports: | ||
- "5000:5000" | ||
build: | ||
context: ../ | ||
dockerfile: ./docker/Dockerfile | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "d612f01a-ff5c-412c-b631-35fc6b5a9793", | ||
"name": "blockchain", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Get chain", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "formdata", | ||
"formdata": [ | ||
{ | ||
"key": "ein", | ||
"value": "621721435", | ||
"description": "", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "pin", | ||
"value": "001", | ||
"description": "", | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"url": { | ||
"raw": "localhost:5000/chain", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"chain" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "New transaction", | ||
"request": { | ||
"method": "POST", | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n\t\"author\": \"Tom\",\n\t\"content\": \"Pipirolo\"\n}" | ||
}, | ||
"url": { | ||
"raw": "localhost:5000/new_trans", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"new_trans" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Mine", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"url": { | ||
"raw": "localhost:5000/mine", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"mine" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Pending transactions", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": {}, | ||
"url": { | ||
"raw": "localhost:5000/pending_tx", | ||
"host": [ | ||
"localhost" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"pending_tx" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |