-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtarget.yml
More file actions
39 lines (31 loc) · 1.18 KB
/
target.yml
File metadata and controls
39 lines (31 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
- Write a web server to collect images from customer.
- API:
- upload-image (POST): use to send an image to web server
- input: image(png, jpg)
- response: uuid of image
- handler:
- save image to public folder
- save a json object to mongodb : {uuid: image-uuid, path: image-path}
- download-image: download image from server
- input: uuid
- output: image
- handler:
- query mongodb to get image path
- response image to customer
- UI:
- Upload image page: upload image
- Button to upload image
- Display image UUID when uploading finished
- display image page: display image base on uuid
- Form to input UUID
- Display image when submit
- Write docker/docker-compose to build apllication
- Upload to git (TMA/personal):
- Have 2 feature branches for api and ui
- Have readme
- Library:
- Tornado (asynchronus)
- Pymongo/Motor
- uuid
- base64
Advance: Write client to test the apllication using tornado