-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(actors-sdk): use proper binary fromat when receiving cbor data (#…
…1743) <!-- Please make sure there is an issue that this PR is correlated to. --> Closes ACTR-22 ## Changes <!-- If there are frontend changes, please include screenshots. -->
- Loading branch information
Showing
20 changed files
with
3,609 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Rivet Actors x React | ||
|
||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app), showcasing the use of by [Rivet Actors](https://rivet.gg). | ||
|
||
## Overview | ||
|
||
### Simple Chat | ||
|
||
It's a simple chat implementation using Rivet's `Actor` API. It demonstrates how to use the `Actor` API to create a chat application. The chat application is a simple chat room where users can send messages and see messages from other users in real-time. **Does not include any authentication or authorization.** | ||
|
||
## Getting Started | ||
|
||
1. Go through the [Initial Setup](https://rivet.gg/docs/setup) documentation to get a basic understanding of how it works. | ||
2. Create `.env` file in the root of the project and add the following environment variables: | ||
```bash | ||
NEXT_PUBLIC_ACTOR_MANAGER_URL=YOUR ACTOR MANAGER URL FROM INITIAL SETUP | ||
``` | ||
3. Follow instructions in the [Actors ReadMe](./actor/readme.md) to setup and deploy the actors. | ||
4. Run the development server `npm run dev` |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Rivet Actors | ||
|
||
Powered by [Rivet](https://rivet.gg). | ||
|
||
## Overview | ||
|
||
### Simple Chat | ||
|
||
It's a simple chat implementation using Rivet's `Actor` API. It demonstrates how to use the `Actor` API to | ||
create a chat application. The chat application is a simple chat room where users can send messages and see | ||
messages from other users in real-time. **Does not include any authentication or authorization.** | ||
|
||
## Prerequisites | ||
|
||
- [Rivet CLI](https://rivet.gg/docs/setup) | ||
- [Deno](https://deno.land/) | ||
|
||
## File structure | ||
|
||
- `rivet.json` Configuration file for deploying the actor | ||
- `deno.json` Configuration file for dependencies for the actor | ||
- `simple-chat.ts` Simple chat implementation | ||
|
||
## Deploying | ||
|
||
```sh | ||
rivet login | ||
rivet deploy | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"imports": { | ||
"@rivet-gg/actor": "jsr:@rivet-gg/actor", | ||
"@rivet-gg/actor-client": "jsr:@rivet-gg/actor-client" | ||
} | ||
} |
Oops, something went wrong.