react-express-mongodb: rename server to backend

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>
pull/66/head
Jérémie Drouet 4 years ago committed by Guillaume Lours
parent e29f0d1c54
commit be8875c9b6
  1. 0
      react-express-mongodb/backend/Dockerfile
  2. 0
      react-express-mongodb/backend/README.md
  3. 0
      react-express-mongodb/backend/config/config.js
  4. 0
      react-express-mongodb/backend/config/config.json
  5. 0
      react-express-mongodb/backend/config/messages.js
  6. 0
      react-express-mongodb/backend/db/index.js
  7. 0
      react-express-mongodb/backend/logs/project.log
  8. 0
      react-express-mongodb/backend/models/todos/todo.model.js
  9. 0
      react-express-mongodb/backend/package-lock.json
  10. 0
      react-express-mongodb/backend/package.json
  11. 0
      react-express-mongodb/backend/routes/index.js
  12. 0
      react-express-mongodb/backend/server.js
  13. 0
      react-express-mongodb/backend/utils/helpers/logger.js
  14. 0
      react-express-mongodb/backend/utils/helpers/server.responses.js
  15. 12
      react-express-mongodb/docker-compose.yml
  16. 4
      react-express-mongodb/frontend/package.json

@ -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
@ -44,4 +45,3 @@ services:
networks:
react-express:
express-mongo:

@ -17,7 +17,7 @@
"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"
@ -25,7 +25,7 @@
"eslintConfig": {
"extends": "react-app"
},
"proxy": "http://server:3000",
"proxy": "http://backend:3000",
"browserslist": {
"production": [
">0.2%",

Loading…
Cancel
Save