Skip to content

Commit 9b41a7e

Browse files
amplication-build-cl9aeulee52097701ds8ntkb6hb
1 parent 6d80023 commit 9b41a7e

File tree

341 files changed

+13357
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

341 files changed

+13357
-0
lines changed

admin-ui/.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.dockerignore
2+
docker-compose.yml
3+
Dockerfile
4+
build/
5+
node_modules
6+
.env
7+
.gitignore

admin-ui/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PORT=3001
2+
REACT_APP_SERVER_URL =http://localhost:3000

admin-ui/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

admin-ui/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM node:16.16 AS base
2+
3+
ARG REACT_APP_SERVER_URL
4+
5+
ENV REACT_APP_SERVER_URL=$REACT_APP_SERVER_URL
6+
7+
WORKDIR /app
8+
9+
COPY package.json package-lock.json ./
10+
11+
RUN npm ci
12+
13+
COPY . .
14+
15+
RUN npm run build
16+
17+
FROM nginx:stable-alpine AS prod
18+
19+
COPY --from=base /app/build /usr/share/nginx/html
20+
21+
EXPOSE 80
22+
23+
ENTRYPOINT ["nginx", "-g", "daemon off;"]

admin-ui/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Amplication
2+
3+
This app was generated with Amplication.
4+
You can learn more in the [Amplication documentation](https://docs.amplication.com/guides/getting-started).
5+
6+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app), and built with [react-admin](https://marmelab.com/react-admin/)
7+
8+
## Environment Variables
9+
10+
| Environment | Description | Value |
11+
| -------------------- | ------------------------------------------- | --------------------- |
12+
| PORT | The port that the client UI is listening to |
13+
| REACT_APP_SERVER_URL | Amplication Server URL | http://localhost:3000 |
14+
15+
## Available Scripts
16+
17+
In the `admin-ui` subdirectory, you can run:
18+
19+
### `yarn start`
20+
21+
Runs the app in development mode.
22+
23+
Open [http://localhost:3001](http://localhost:3001) to view it in the browser.
24+
25+
### `yarn test`
26+
27+
Runs tests to make sure everything is working correctly.
28+
29+
### `yarn build`
30+
31+
Builds the app for production in the `build` folder.
32+
33+
### `yarn eject`
34+
35+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
36+
37+
Ejects the Create React App. [Click here for more info](https://create-react-app.dev/docs/available-scripts/#npm-run-eject).
38+
39+
### `docker:build`
40+
41+
Build the Admin-UI Docker image.
42+
43+
## Learn More
44+
45+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
46+
47+
To learn React, check out the [React documentation](https://reactjs.org/).

admin-ui/package.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "@sample-service/admin",
3+
"private": true,
4+
"dependencies": {
5+
"@apollo/client": "3.6.9",
6+
"@material-ui/core": "4.12.4",
7+
"graphql": "15.6.1",
8+
"lodash": "4.17.21",
9+
"pluralize": "8.0.0",
10+
"ra-data-graphql-amplication": "0.0.13",
11+
"react": "16.14.0",
12+
"react-admin": "3.19.11",
13+
"react-dom": "16.14.0",
14+
"react-scripts": "5.0.0",
15+
"sass": "^1.39.0",
16+
"web-vitals": "1.1.2"
17+
},
18+
"scripts": {
19+
"start": "react-scripts start",
20+
"build": "react-scripts build",
21+
"test": "react-scripts test",
22+
"eject": "react-scripts eject",
23+
"docker:build": "docker build ."
24+
},
25+
"eslintConfig": {
26+
"extends": [
27+
"react-app",
28+
"react-app/jest"
29+
]
30+
},
31+
"browserslist": {
32+
"production": [
33+
">0.2%",
34+
"not dead",
35+
"not op_mini all"
36+
],
37+
"development": [
38+
"last 1 chrome version",
39+
"last 1 firefox version",
40+
"last 1 safari version"
41+
]
42+
},
43+
"devDependencies": {
44+
"@testing-library/jest-dom": "5.14.1",
45+
"@testing-library/react": "11.2.7",
46+
"@testing-library/user-event": "13.2.0",
47+
"@types/jest": "26.0.16",
48+
"@types/lodash": "4.14.178",
49+
"@types/node": "12.20.16",
50+
"@types/react": "16.14.11",
51+
"@types/react-dom": "17.0.0",
52+
"type-fest": "0.13.1",
53+
"typescript": "4.2.4"
54+
}
55+
}

admin-ui/public/favicon.ico

6.39 KB
Binary file not shown.

admin-ui/public/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta name="description" content="Sample service for e-commerce" />
9+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
10+
<!--
11+
manifest.json provides metadata used when your web app is installed on a
12+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
13+
-->
14+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
15+
<!--
16+
Notice the use of %PUBLIC_URL% in the tags above.
17+
It will be replaced with the URL of the `public` folder during the build.
18+
Only files inside the `public` folder can be referenced from the HTML.
19+
20+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
21+
work correctly both with client-side routing and a non-root public URL.
22+
Learn how to configure a non-root public URL by running `npm run build`.
23+
-->
24+
<title>Sample service</title>
25+
</head>
26+
<body>
27+
<noscript>You need to enable JavaScript to run this app.</noscript>
28+
<div id="root"></div>
29+
<!--
30+
This HTML file is a template.
31+
If you open it directly in the browser, you will see an empty page.
32+
33+
You can add webfonts, meta tags, or analytics to this file.
34+
The build step will place the bundled scripts into the <body> tag.
35+
36+
To begin the development, run `npm start` or `yarn start`.
37+
To create a production bundle, use `npm run build` or `yarn build`.
38+
-->
39+
</body>
40+
</html>

admin-ui/public/logo192.png

9.49 KB
Loading

admin-ui/public/logo512.png

17 KB
Loading

0 commit comments

Comments
 (0)