diff options
| -rw-r--r-- | .nvmrc | bin | 0 -> 16 bytes | |||
| -rw-r--r-- | Dockerfile | 8 | ||||
| -rw-r--r-- | README.md | 15 |
3 files changed, 20 insertions, 3 deletions
| 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"] + + @@ -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` |
