Skip to content

Commit

Permalink
react-express-mongodb: rename server to backend
Browse files Browse the repository at this point in the history
The goal here is to keep the same structure than the other examples.
Also, considering that it has a "frontend" folder, the equivalent for
the server should be "backend".

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet authored and glours committed May 13, 2020
1 parent e29f0d1 commit be8875c
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions react-express-mongodb/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ services:
networks:
- react-express
depends_on:
- server
server:
container_name: server
- backend

backend:
container_name: backend
restart: always
build:
context: server
context: backend
args:
NODE_PORT: 3000
volumes:
- ./server:/usr/src/app
- ./backend:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- mongo
Expand All @@ -44,4 +45,3 @@ services:
networks:
react-express:
express-mongo:

4 changes: 2 additions & 2 deletions react-express-mongodb/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"fsevents": "^2.1.2"
},
"scripts": {
"start": "PORT=5000 react-scripts start",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"proxy": "http://server:3000",
"proxy": "http://backend:3000",
"browserslist": {
"production": [
">0.2%",
Expand Down

0 comments on commit be8875c

Please sign in to comment.