Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions admin-ui/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.dockerignore
docker-compose.yml
Dockerfile
build/
node_modules
.env
.gitignore
2 changes: 2 additions & 0 deletions admin-ui/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PORT=3001
REACT_APP_SERVER_URL =http://localhost:3000
23 changes: 23 additions & 0 deletions admin-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
35 changes: 35 additions & 0 deletions admin-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM node:16-alpine AS base

# Define how verbose should npm install be
ARG NPM_LOG_LEVEL=silent
# Hide Open Collective message from install logs
ENV OPENCOLLECTIVE_HIDE=1
# Hiden NPM security message from install logs
ENV NPM_CONFIG_AUDIT=false
# Hide NPM funding message from install logs
ENV NPM_CONFIG_FUND=false

# Update npm to version 7
RUN npm i -g npm@8.1.2

# Set the working directory
WORKDIR /app/admin-ui

# Copy files specifying dependencies
COPY package.json package-lock.json ./

# Install dependencies
RUN npm ci --loglevel=$NPM_LOG_LEVEL;

# Copy all the files
COPY . .

# Build code
RUN npm run build

# Expose the port the client listens to
EXPOSE 3001

# Run admin-ui

CMD [ "npm", "start"]
47 changes: 47 additions & 0 deletions admin-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Amplication

This app was generated with Amplication.
You can learn more in the [Amplication documentation](https://docs.amplication.com/guides/getting-started).

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/)

## Environment Variables

| Environment | Description | Value |
| -------------------- | ------------------------------------------- | --------------------- |
| PORT | The port that the client UI is listening to |
| REACT_APP_SERVER_URL | Amplication Server URL | http://localhost:3000 |

## Available Scripts

In the `admin-ui` subdirectory, you can run:

### `yarn start`

Runs the app in development mode.

Open [http://localhost:3001](http://localhost:3001) to view it in the browser.

### `yarn test`

Runs tests to make sure everything is working correctly.

### `yarn build`

Builds the app for production in the `build` folder.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

Ejects the Create React App. [Click here for more info](https://create-react-app.dev/docs/available-scripts/#npm-run-eject).

### `docker:build`

Build the Admin-UI Docker image.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
Loading