aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-03-14 09:34:58 +0100
committerGitHub <noreply@github.com>2022-03-14 09:34:58 +0100
commit34653b82f175af4df5995ce9194fd8ffbaed5015 (patch)
tree659307d00aa2da08695389d3a8dc85144bc73f2e
parent9686e9765a0e64c081ef3beb68dccf7c263abd54 (diff)
parent5ea29f91b8110ab7c91e8ee2ab2aedbfa35c5062 (diff)
Merge pull request #108 from caleb-mabry/adding-nvm
Added nvm and Docker support
-rw-r--r--.nvmrcbin0 -> 16 bytes
-rw-r--r--Dockerfile8
-rw-r--r--README.md15
3 files changed, 20 insertions, 3 deletions
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000..15238e9
--- /dev/null
+++ b/.nvmrc
Binary files differ
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..de7d651
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,8 @@
+FROM node:14
+WORKDIR /usr/src/app
+COPY package*.json ./
+RUN npm install
+COPY . .
+CMD ["npm", "start"]
+
+
diff --git a/README.md b/README.md
index 05b5411..8fa1674 100644
--- a/README.md
+++ b/README.md
@@ -17,11 +17,20 @@ Link to the client in this repo: http://web.aceattorneyonline.com/
# Project Setup
- Install [Node JS](https://nodejs.org/en/)
+- Install nvm | [Windows](https://github.com/coreybutler/nvm-windows) , [Linux](https://github.com/nvm-sh/nvm)
-# Running Locally
-`npm install`
+# Running Locally on Windows
+1. Look at the file version in `.nvmrc` and run `nvm use <VERSION NUMBER>`
+2. `npm install`
+3. `npm run start`
-`npm run start`
+# Running Locally on Linux
+1. `nvm use`
+2. `npm install`
+3. `npm run start`
+# Running with Docker
+`docker build -t webao .`
+`docker run -d -it -p 8080:8080 webao`