chore: move js to src/ directory

This commit is contained in:
Paul Bienkowski 2020-11-28 19:17:19 +01:00
parent ecb1b3d04c
commit 1b4718b0ac
28 changed files with 4 additions and 13 deletions

View file

@ -4,7 +4,7 @@ WORKDIR /opt/obsAPI
ADD package.json package-lock.json /opt/obsAPI/
RUN npm ci
ADD _helpers _middleware accounts config models public routes app.js /opt/obsAPI/
ADD src /opt/obsAPI/src/
EXPOSE 8080
ENV PORT=8080

View file

@ -16,16 +16,7 @@ services:
context: .
dockerfile: ./Dockerfile
volumes:
- ./_helpers:/opt/obsAPI/_helpers
- ./_middleware:/opt/obsAPI/_middleware
- ./accounts:/opt/obsAPI/accounts
- ./config:/opt/obsAPI/config
- ./data:/opt/obsAPI/data
- ./models:/opt/obsAPI/models
- ./logic:/opt/obsAPI/logic
- ./public:/opt/obsAPI/public
- ./routes:/opt/obsAPI/routes
- ./app.js:/opt/obsAPI/app.js
- ./src:/opt/obsAPI/src
environment:
- PORT=3000
- MONGODB_URL=mongodb://mongo/obsTest

View file

@ -5,8 +5,8 @@
"main": "app.js",
"scripts": {
"mongo:start": "docker run --name realworld-mongo -p 27017:27017 mongo & sleep 5",
"start": "node ./app.js",
"dev": "nodemon ./app.js",
"start": "node src/",
"dev": "nodemon src/",
"mongo:stop": "docker stop realworld-mongo && docker rm realworld-mongo",
"autoformat": "eslint --fix .",
"lint": "eslint .",