aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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`