-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 1.34 KB
/
Makefile
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
test:
poetry run pytest
start:
poetry run python api/app.py
seed:
curl --location --request PUT 'http://0.0.0.0:8080/api/store/x1' --header 'Content-Type: application/json' --data-raw '{"value": "Wolverine"}'
curl --location --request PUT 'http://0.0.0.0:8080/api/store/x2' --header 'Content-Type: application/json' --data-raw '{"value": "Gambit"}'
curl --location --request PUT 'http://0.0.0.0:8080/api/store/x3' --header 'Content-Type: application/json' --data-raw '{"value": "Quicksilver"}'
curl --location --request PUT 'http://0.0.0.0:8080/api/store/mutants/zadd' \
--header 'Content-Type: application/json' \
--data-raw '{ "score": 1, "member": "Wolverine" }'
curl --location --request PUT 'http://0.0.0.0:8080/api/store/mutants/zadd' \
--header 'Content-Type: application/json' \
--data-raw '{ "score": 1, "member": "Guepardo" }'
curl --location --request PUT 'http://0.0.0.0:8080/api/store/mutants/zadd' \
--header 'Content-Type: application/json' \
--data-raw '{ "score": 2, "member": "Gambit" }'
curl --location --request PUT 'http://0.0.0.0:8080/api/store/mutants/zadd' \
--header 'Content-Type: application/json' \
--data-raw '{ "score": 3, "member": "Quicksilver" }'
docker_remove:
docker rm miniredisapi
docker_build:
docker build -t mini-redis-server .
docker_start:
docker run -p 8080:8080 --name miniredisapi -d mini-redis-api