-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples/cbdc): migrate frontend to Typescript
* Closes #2817 * Depends on #2912 Signed-off-by: André Augusto <[email protected]>
- Loading branch information
1 parent
7c46c08
commit 683ca7c
Showing
36 changed files
with
3,244 additions
and
5,531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
|
||
|
||
FROM node:16-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY ./examples/cbdc-bridging-fabric-evm-frontend/package.json ./ | ||
COPY package.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY ./examples/cbdc-bridging-fabric-evm-frontend/ . | ||
COPY . . | ||
|
||
EXPOSE 2000 | ||
|
||
CMD [ "npm", "start" ] | ||
CMD [ "npm", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
# Available Scripts | ||
# Getting Started with Create React App | ||
|
||
In the project directory, you can run: | ||
## Run with Docker | ||
|
||
## `npm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
### Using a pre-built image | ||
|
||
The page will reload when you make changes.\ | ||
You may also see any lint errors in the console. | ||
`docker run -p 2000:2000 aaugusto11/cactus-example-cbdc-bridging-frontend` | ||
|
||
## `npm test` | ||
### Building the image | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
```docker build -t cbdc-app-frontend . | ||
docker run -p 2000:2000 cbdc-app-frontend``` | ||
## `npm run build` | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
## `npm start` | ||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
Runs the app in the development mode.\ | ||
Open [http://localhost:2000](http://localhost:2000) to view it in the browser. | ||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
The page will reload if you make edits.\ | ||
You will also see any lint errors in the console. |
Oops, something went wrong.