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:
Jérémie Drouet
2020-05-13 09:42:39 +02:00
committed by Guillaume Lours
parent be7f09b6ba
commit e5828ad1bf
10 changed files with 120 additions and 151 deletions

View File

@@ -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