Compare commits

..

No commits in common. "master" and "b05c75fae498198dce6369f42c1f77e3aa5af72d" have entirely different histories.

4 changed files with 188 additions and 857 deletions

View File

@ -1,11 +0,0 @@
# Ignore node_modules
node_modules/
# Ignore README
README.md
# Ignore Dockerfile
Dockerfile
#Ignore dotfiles
.*

View File

@ -1,14 +0,0 @@
FROM alpine:latest
# Install package manager dependencies
RUN apk add --no-cache nodejs npm
# Copy in data
WORKDIR /app/
COPY . .
# Install npm dependencies
RUN npm i
EXPOSE 8000/tcp
CMD ["npm", "start"]

1018
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
$scope.lastMate = "";
$http.get("mates")
$http.get("/mates")
.then((r) =>
{
var json = angular.fromJson(r.data);
@ -33,7 +33,7 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
// Don't bother updating during a cooldown
if ($scope.cooldown) return;
$http.post("mates")
$http.post("/mates")
.then((r) =>
{
var json = angular.fromJson(r.data);