Skip to content

react-java-mysql: use create-react-app for frontend#24

Merged
glours merged 1 commit intodocker:masterfrom
jdrouet:update-react-apps
Mar 24, 2020
Merged

react-java-mysql: use create-react-app for frontend#24
glours merged 1 commit intodocker:masterfrom
jdrouet:update-react-apps

Conversation

@jdrouet
Copy link
Contributor

@jdrouet jdrouet commented Mar 23, 2020

Create the frontend with create-react-app and typescript (for java devs), and connect the proxy by setting src/setupProxy.js.
Also merge the 2 dockerfiles into a single one.
The exposed port in dev mode is now 3000.

Signed-off-by: Jérémie Drouet jeremie.drouet@gmail.com

import logo from "./logo.svg";
import "./App.css";

type Greeting = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the data type returned by the backend

Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the port in the Compose file and in the README, we choose to keep the default port used by the language/framework to be close as possible to the dev workflow
otherwise LGTM

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
@jdrouet jdrouet requested a review from glours March 23, 2020 13:08
@glours glours merged commit 775a9a5 into docker:master Mar 24, 2020
@glours glours mentioned this pull request Mar 24, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants