-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added 'Requirements' page and 'Syncosaurus CLI' page - edits and polish to existing pages, mainly core-concept pages - resize latency slider - removed unnecessary imports in HomePageFeatures component Co-authored-by: Alex Sklar <[email protected]> Co-authored-by: Erik Margetis <[email protected]>
- Loading branch information
1 parent
3b574b0
commit aa36e36
Showing
10 changed files
with
134 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Requirements | ||
|
||
Before using Syncosaurus, ensure the following requirements are met: | ||
|
||
- [Node](https://nodejs.org/en) v18+ | ||
- [npm](https://www.npmjs.com/) | ||
- A frontend that utilizes [React](https://react.dev/) v16.8+ | ||
- Paid Cloudflare account with access to [Durable Objects](https://developers.cloudflare.com/durable-objects/) | ||
- Access to the [Syncosaurus CLI](https://github.com/syncosaurus/syncosaurus-cli) | ||
- This requirement can be fulfilled in two ways: | ||
- *Recommended*: Use the [`npx`](https://www.npmjs.com/package/npx) feature to directly run Syncosaurus CLI commands without installing the Syncosaurus CLI application | ||
- Alternatively, you may also install the Syncosaurus CLI locally: | ||
```shell | ||
npm install -g syncosaurus-cli | ||
``` |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Syncosaurus CLI | ||
|
||
The Syncosaurus CLI application is used to conveniently create, configure, manage, and deploy Syncosaurus applications. Built in Typescript with the [oclif](https://oclif.io/) framework. | ||
|
||
## Installation | ||
|
||
- It is recommended to utilize the Syncosaurus CLI with `npx` commands, without having to install the application locally. | ||
- If you still wish to install the Syncosaurus CLI locally, run `npm install -g syncosaurus-cli`. | ||
|
||
## Setup and Development Commands | ||
|
||
If you are electing to run the Syncosaurus CLI locally, simply remove the `npx` at the beginning of the commands below. | ||
|
||
### `syncosaurus init` | ||
|
||
- Create a new React application, pre-configured with a Syncosaurus multiplayer backend. Note that this command will create a `syncosaurus.json` configuration file in your root directory. | ||
|
||
```bash | ||
npx syncosaurus init | ||
``` | ||
|
||
### `syncosaurus setup` | ||
|
||
- Add Syncosaurus to an existing React-based application. Note that this command will also create a `syncosaurus.json` configuration file in your root directory. | ||
|
||
```bash | ||
npx syncosaurus setup | ||
``` | ||
|
||
### `syncosaurus dev` | ||
|
||
- Start a local Syncosaurus development environment. Run without any flags to start up both a local Syncosaurus server and a local Vite UI server. Run with the `-b`/`-backendOnly` flag to start up only a local Syncosaurus server. | ||
- The local Syncosaurus server will use the designated port, as specified by a `PORT` value in your local `.env` file. If no such value exists, it will default to port 8787. | ||
|
||
```bash | ||
npx syncosaurus dev [-b] | ||
``` | ||
<br></br> | ||
## Deployment Commands | ||
|
||
### `syncosaurus deploy` | ||
|
||
- Deploy your Syncosaurus application. You must be logged in to use this command. | ||
|
||
```bash | ||
npx syncosaurus deploy | ||
``` | ||
|
||
### `syncosaurus destroy` | ||
|
||
- Delete your most recent deployment, only if that deployment matches the current project. You must be logged in to use this command. | ||
|
||
```bash | ||
npx syncosaurus destroy | ||
``` | ||
|
||
### `syncosaurus tail` | ||
|
||
- Setup a tail log stream for a deployed Syncosaurus worker. | ||
|
||
```bash | ||
npx syncosaurus tail | ||
``` | ||
|
||
## Authentication Commands | ||
|
||
### `syncosaurus login` | ||
|
||
- Login to Synocosaurus through OAuth or API token. | ||
|
||
```bash | ||
npx syncosaurus login | ||
``` | ||
|
||
### `syncosaurus logout` | ||
|
||
- Logout of Syncosaurus. | ||
|
||
```bash | ||
npx syncosaurus logout | ||
``` | ||
|
||
### `syncosaurus whoami` | ||
|
||
- Check your current Syncosaurus login status. | ||
|
||
```bash | ||
npx syncosaurus whoami | ||
``` |
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