Merge pull request #117 from waku-org/rln-react-ts

This commit is contained in:
fryorcraken.eth 2022-09-26 14:08:27 +10:00 committed by GitHub
commit f452056b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 20 additions and 49 deletions

View File

@ -16,7 +16,7 @@ jobs:
eth-pm,
relay-angular-chat,
relay-reactjs-chat,
rln-reactts,
rln-react-ts,
store-reactjs-chat,
web-chat
]

2
ci/Jenkinsfile vendored
View File

@ -37,7 +37,7 @@ pipeline {
stage('eth-pm') { steps { script { buildExample() } } }
stage('relay-angular-chat') { steps { script { buildExample() } } }
stage('relay-reactjs-chat') { steps { script { buildExample() } } }
stage('rln-reactts') { steps { script { buildExample() } } }
stage('rln-react-ts') { steps { script { buildExample() } } }
stage('store-reactjs-chat') { steps { script { buildExample() } } }
stage('web-chat') { steps { script { buildExample() } } }
}

17
rln-react-ts/README.md Normal file
View File

@ -0,0 +1,17 @@
# RLN React TypeScript Waku App
**Demonstrates**:
- RLN
- React/TypeScript
The `master` branch's HEAD is deployed at https://examples.waku.org/rln-react-ts/.
To run a development version locally, do:
```shell
git clone https://github.com/waku-org/js-waku-examples
cd rln-react-ts
npm install
npm run start
```

View File

@ -2,7 +2,7 @@
"name": "rln-reactts",
"version": "0.1.0",
"private": true,
"homepage": "/rln-reaccts",
"homepage": "/rln-react-ts",
"dependencies": {
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -1,46 +0,0 @@
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `npm test`
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.
### `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.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
## 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/).