diff --git a/client/Private/nginx.conf b/client/Private/nginx.conf index 46e66be..e90f73c 100644 --- a/client/Private/nginx.conf +++ b/client/Private/nginx.conf @@ -10,7 +10,10 @@ http { server { location /submit { - proxy_pass http://tradegame/submit; + proxy_pass http://tradegame:5000/submit; + } + location /status { + proxy_pass http://tradegame:5000/status; } location / { root /usr/share/nginx/html; diff --git a/client/Public/index.html b/client/Public/index.html index 6b4f73e..4bcd739 100644 --- a/client/Public/index.html +++ b/client/Public/index.html @@ -1,18 +1,34 @@ - 🚂Vote Train🚂 + oh ne! -
-
-
-
- Upvote:
- Downvote:
- +
+ Info
+
Price: 0
+
Ask: 0
+
Bid: 0
+
+
+
+ + Agne
+
USD: 0
+
BTC: 0
+
+ + +
+
+
+ Dan
+
USD: 0
+
BTC: 0
+
+
diff --git a/client/Public/script.js b/client/Public/script.js index fb7cbfc..a8a0ff2 100644 --- a/client/Public/script.js +++ b/client/Public/script.js @@ -1,9 +1,7 @@ -async function send(){ +async function send(userID, asset){ data={ - key:document.getElementById("key").value, - upvote: document.getElementById("upvote").checked, - downvote:document.getElementById("downvote").checked, - + userID: userID, + asset: asset } let response = await fetch('/submit', { method: 'POST', diff --git a/server/Dockerfile b/server/Dockerfile new file mode 100644 index 0000000..d68de46 --- /dev/null +++ b/server/Dockerfile @@ -0,0 +1,9 @@ +FROM node:latest + +ADD ./ /app + +WORKDIR /app + +RUN npm i + +CMD ["node /app/index.js"]