aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-13 20:46:22 -0400
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-13 20:46:22 -0400
commitc3767e5a81710634dc3705a1a9f4fc94e1f1d981 (patch)
tree5a8bf4d4f263a0c7a27ede52c977340eb5de8a4c
parent29330b3e707d975bfb05024338123f3f131127d5 (diff)
Added nvm and dockerfile
-rw-r--r--.nvmrcbin0 -> 16 bytes
-rw-r--r--Dockerfile6
-rw-r--r--README.md15
3 files changed, 18 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..5c624e5
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,6 @@
+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`