tebakaja's picture
update: add docker and actions config
0503b31
raw
history blame
1.92 kB
DEV_ENDPOINT=http://192.168.137.1:7860
PROD_ENDPOINT=https://qywok-tebakaja-proxy-space-0.hf.space
start:
go run main.go
haproxy-test:
haproxy -f ./haproxy/haproxy.cfg
nginx-test:
nginx -c nginx.conf
traefik-test:
traefik \
--configFile=./traefik/traefik.yaml \
--entryPoints.web.address=":7860" \
--entryPoints.websecure.address=":443" \
--entryPoints.web.http.redirections.entryPoint.to=websecure \
--entryPoints.web.http.redirections.entryPoint.scheme=https \
--api.dashboard=true \
--api.insecure=false
stock-list-test:
curl -X GET $(DEV_ENDPOINT)/stock/lists
stock-prediction-test:
curl -X POST $(DEV_ENDPOINT)/stock/prediction \
-H "Content-Type: application/json" \
-d "{\"days\": 2, \"currency\": \"BTC-USD\"}"
crypto-list-test:
curl -X GET $(DEV_ENDPOINT)/crypto/lists
crypto-prediction-test:
curl -X POST $(DEV_ENDPOINT)/crypto/prediction \
-H "Content-Type: application/json" \
-d "{\"days\": 2, \"currency\": \"BTC-USD\"}"
natcurr-list-test:
curl -X GET $(DEV_ENDPOINT)/national-currency/lists
natcurr-prediction-test:
curl -X POST $(DEV_ENDPOINT)/national-currency/prediction \
-H "Content-Type: application/json" \
-d "{\"days\": 2, \"currency\": \"BTC-USD\"}"
stock-list-prod:
curl -X GET $(PROD_ENDPOINT)/stock/lists
stock-prediction-prod:
curl -X POST $(PROD_ENDPOINT)/stock/prediction \
-H "Content-Type: application/json" \
-d "{\"days\": 7, \"currency\": \"BTC-USD\"}"
crypto-list-prod:
curl -X GET $(PROD_ENDPOINT)/crypto/lists
crypto-prediction-prod:
curl -X POST $(PROD_ENDPOINT)/crypto/prediction \
-H "Content-Type: application/json" \
-d "{\"days\": 7, \"currency\": \"BTC-USD\"}"
natcurr-list-prod:
curl -X GET $(PROD_ENDPOINT)/national-currency/lists
natcurr-prediction-prod:
curl -X POST $(PROD_ENDPOINT)/national-currency/prediction \
-H "Content-Type: application/json" \
-d "{\"days\": 7, \"currency\": \"BTC-USD\"}"