Skip to content

Commit 24375a3

Browse files
authored
Mikec/hosting example (#60)
* wip * okay lets go to netlify instead * added netlify redirects and updated readme * dont need that
1 parent 9104b33 commit 24375a3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ const avgScoreForUser =
4949
The Aggregate component provides `O(log(n))`-time lookups, instead of the `O(n)`
5050
that would result from naive usage of `.collect()` in Convex or `COUNT(*)` in MySQL or Postgres.
5151

52+
## Examples
53+
5254
## What are Aggregates for?
5355

5456
With plain Convex indexes, you can insert new documents and you can paginate
@@ -149,6 +151,8 @@ The Aggregate component can efficiently calculate all of these:
149151
where each page has 50 photos.
150152
- [Random access](#total-count-and-randomization): Look up a random song in a playlist, as the next song to play.
151153

154+
Try it out: https://aggregate-component-example.netlify.app/
155+
152156
## Pre-requisite: Convex
153157

154158
You'll need an existing Convex project to use the component.
@@ -299,6 +303,8 @@ To run the examples:
299303
4. The dashboard should open and you can run functions like
300304
`leaderboard:addScore` and `leaderboard:userAverageScore`.
301305

306+
Or play with them online at: https://aggregate-component-example.netlify.app/
307+
302308
### Total Count and Randomization
303309

304310
If you don't need the ordering, partitioning, or summing behavior of

example/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Example App
22

3+
You can try out the examples online at: https://aggregate-component-example.netlify.app/
4+
35
## To run the examples
46

57
Once you have cloned this repo, **from the root of the repo**:

example/public/_redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* /index.html 200
2+

0 commit comments

Comments
 (0)