Skip to content

Commit a24c54a

Browse files
authored
Add files via upload
1 parent 23181d3 commit a24c54a

16 files changed

+13750
-0
lines changed

ui-web-app-reactjs/Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:8
2+
WORKDIR /app
3+
COPY . .
4+
5+
RUN npm install express
6+
RUN npm install
7+
8+
EXPOSE 8080
9+
10+
#Runs in development Mode
11+
CMD ["npm", "start"]

ui-web-app-reactjs/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ui-web-app-reactjs
2+
UI app to access microservices through API Gateway.
3+
Developed in React.js
4+
5+
## Build Instruction
6+
```
7+
npm install
8+
9+
npm start
10+
11+
```
12+
*App runs on port **8080***
13+
14+
Open http://localhost:8080 in browser
15+
##
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
This is a custom Webpack plugin that simply runs a function after each build.
3+
In Create New App, this is used to console.log the urls to the application
4+
in the browser as well as (conditionally) the api server url.
5+
*/
6+
7+
class AfterCompilePlugin {
8+
constructor({ run }) {
9+
this.run = run
10+
}
11+
12+
apply(compiler) {
13+
compiler.hooks.afterEmit.tap('AfterCompilePlugin', compilation => {
14+
/*
15+
Using `setTimeout` here simply bumps running `this.run()`
16+
to *after* Webpack has spewed a ton of stuff into the console.
17+
The idea is to have the url's mentioned above logged at the
18+
very last moment so they're the last thing the user sees.
19+
*/
20+
setTimeout(() => this.run && this.run(), 0)
21+
})
22+
}
23+
}
24+
25+
module.exports = AfterCompilePlugin

ui-web-app-reactjs/dist/favicon.ico

4.05 KB
Binary file not shown.

ui-web-app-reactjs/dist/robots.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)