Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 783 Bytes

File metadata and controls

35 lines (23 loc) · 783 Bytes

React (JavaScript) website

Proof-of-Concept (PoC) application that calls 2 other services.

For example for "Hello world!" this app would be the one providing calling 2 services to get "Hello" and "world", and it would add the "!" at the end.

Architecture diagram

Commands

Dependencies are defined in package.json and package-lock.json. To install the dependencies:

npm ci

To build the application:

npm build

To run the application:

npm start

Some Node.js-specific workarounds have to happen in the Dockerfile: adding node_modules to the path and installing react-scripts!

docker run --interactive --tty --rm \
  --publish 3000:3000 \
  YOUR_IMAGE_ID_HERE