react-express-mongodb: clean frontend code
- apply prettier style on every js file - remove mutation on immutable variables - remove wrapper on top of axios - fix form handling - remove useless port definition in dockerfile Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
committed by
Guillaume Lours
parent
be7f09b6ba
commit
e5828ad1bf
@@ -1,12 +1,9 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
context: frontend
|
||||
args:
|
||||
FRONT_END_PORT: 5000
|
||||
build: frontend
|
||||
ports:
|
||||
- 5000:5000
|
||||
- 3000:3000
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- ./frontend:/usr/src/app
|
||||
@@ -21,10 +18,7 @@ services:
|
||||
backend:
|
||||
container_name: backend
|
||||
restart: always
|
||||
build:
|
||||
context: backend
|
||||
args:
|
||||
NODE_PORT: 3000
|
||||
build: backend
|
||||
volumes:
|
||||
- ./backend:/usr/src/app
|
||||
- /usr/src/app/node_modules
|
||||
|
||||
Reference in New Issue
Block a user