Skip to content

Commit

Permalink
Feature/threads (#4)
Browse files Browse the repository at this point in the history
* wip

* wip

* wip

* pub/sub minimum almost working

* updated threads

* wip

* wip

* wip

* tested 100k+ set size and elastic

* wip

* wip

* wip

* wip

* wip

* wp

* wp

* wip

* added www

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
  • Loading branch information
dioptre authored Mar 19, 2020
1 parent 4ee00a3 commit bb7f9dc
Show file tree
Hide file tree
Showing 47 changed files with 26,323 additions and 199 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
.DS_Store
.env
.env*
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ Subscribes a user to native messaging using their current device.
or
{"os": "android", "token": "e_nslPZejyM:APA91bHR-znf4EuSIKeY9dzlX4cupXA5cdsW1SzOHUFRrsteaL5WDuzsh_cnpVpQC3IPcewl_v3N0kbArC67UTEW_ENt5Ej5Sn0qi1RoRHv5beLNi9y4OzZ__T3SH3tW5gwqxn2Hap01"}
or
{
endpoint: 'https://fcm.googleapis.com/fcm/send/czVGxJOoycA:APA91bGZt8FZU2fEAnDCr1PdRb7HDtayoGDUO1dy6vjTu1sDKhGAAB0i2nXw_jGKhnzmh5rmK4klsyaRQaUpM0oS0VYGBCTTpF-nkP67UEW7BX9o7vNatcPuiG-yHa75hXE80B5F7DNi',
expirationTime: null,
keys: {
p256dh: 'BN81HfHxzt4V4lXDV_2ia8Rl_QvqofvoNI7_MOHCiOMEYuFXFNDBOJzKCCj2nzK5luwnH6rvBCN2jx7lNHpraaw',
auth: '0ywNrBxQ-rm4skkHDJB5lw'
}
}
```

**Correct Response:**
Expand All @@ -138,8 +149,8 @@ or

- [ ] Processing in batches
- [ ] Multicast using elastic search (instead of slower CQL)
- [ ] Add web notifications and SMS (Amazon/Twilio)
- [ ] Add WebSocket
- [ ] Think about gRPC
- [ ] Add email fallback w/ templated options (inc. scheduling options)
- [x] Add web notifications and SMS (Amazon/Twilio)
- [x] Add WebSocket
- [x] ~~Think about gRPC~~ waste of time
- [x] Add email fallback w/ templated options (inc. scheduling options)
- [ ] Add "last read" to each method, and ensure not sent in WebSocket first.
35 changes: 1 addition & 34 deletions examples/xcrn/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,40 +36,7 @@ const App: () => React$Node = () => {
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{global.HermesInternal == null ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>
)}
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}>
Edit <Text style={styles.highlight}>App.js</Text> to change this
screen and then come back to see your edits.
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>See Your Changes</Text>
<Text style={styles.sectionDescription}>
<ReloadInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Debug</Text>
<Text style={styles.sectionDescription}>
<DebugInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Learn More</Text>
<Text style={styles.sectionDescription}>
Read the docs to discover what to do next:
</Text>
</View>
<LearnMoreLinks />
</View>
<Text>Checkout the debug console...</Text>
</ScrollView>
</SafeAreaView>
</>
Expand Down
4 changes: 4 additions & 0 deletions examples/xcwww/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REACT_APP_URL_WS=ws://localhost:9001
REACT_APP_URL_API=http://localhost:9001
REACT_APP_EXAMPLE_JWT=usetheajwttestinxcstogenerateajwttoken
REACT_APP_EXAMPLE_PUSH_PUB=BHLaegnjtvduWQNoSWEfbNIbiYt7XYh-d5PXo16C4QYwyDKCLelPbPcrjGNA5dIb7fMS0p46c91ESRyB81W7NXE
24 changes: 24 additions & 0 deletions examples/xcwww/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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
.env

npm-debug.log*
yarn-debug.log*
yarn-error.log*
68 changes: 68 additions & 0 deletions examples/xcwww/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.<br />
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.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

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

If you aren’t 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 you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t 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/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `yarn build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
Loading

0 comments on commit bb7f9dc

Please sign in to comment.