From c3767e5a81710634dc3705a1a9f4fc94e1f1d981 Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sun, 13 Mar 2022 20:46:22 -0400 Subject: Added nvm and dockerfile --- .nvmrc | Bin 0 -> 16 bytes Dockerfile | 6 ++++++ README.md | 15 ++++++++++++--- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .nvmrc create mode 100644 Dockerfile diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..15238e9 Binary files /dev/null and b/.nvmrc 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 ` +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` -- cgit