Highly ambitious ATProtocol AppView service and sdks

update getting started docs

+31 -10
+19 -4
docs/getting-started.md
··· 10 11 ```bash 12 # Install from JSR 13 - deno install -g jsr:@slices/cli --name slices 14 ``` 15 16 ### Create Your Project 17 ··· 364 365 ### Deno Deploy 366 367 - Create a free account at [deno.com/deploy](https://deno.com/deploy). Push your code to GitHub, then connect your repository through the Deno Deploy dashboard to deploy your app. 368 369 - For production use with Deno Deploy, switch from SQLite to Deno KV for OAuth and session storage: 370 371 ```typescript 372 import { DenoKVOAuthStorage } from "@slices/oauth"; ··· 391 }); 392 ``` 393 394 - Deno KV provides serverless-compatible storage that scales automatically with your deployment. 395 396 ## Manual Setup (Advanced) 397
··· 10 11 ```bash 12 # Install from JSR 13 + deno install -g -A jsr:@slices/cli --name slices 14 + ``` 15 + 16 + ### Login to Slices 17 + 18 + Before creating a project, authenticate with your AT Protocol account: 19 + 20 + ```bash 21 + slices login 22 ``` 23 + 24 + This will open a browser window where you can authorize the CLI with your AT 25 + Protocol handle. 26 27 ### Create Your Project 28 ··· 375 376 ### Deno Deploy 377 378 + Create a free account at [deno.com/deploy](https://deno.com/deploy). Push your 379 + code to GitHub, then connect your repository through the Deno Deploy dashboard 380 + to deploy your app. 381 382 + For production use with Deno Deploy, switch from SQLite to Deno KV for OAuth and 383 + session storage: 384 385 ```typescript 386 import { DenoKVOAuthStorage } from "@slices/oauth"; ··· 405 }); 406 ``` 407 408 + Deno KV provides serverless-compatible storage that scales automatically with 409 + your deployment. 410 411 ## Manual Setup (Advanced) 412
+12 -6
docs/intro.md
··· 37 38 ```bash 39 # Install the CLI globally 40 - deno install -g jsr:@slices/cli --name slices 41 42 # Initialize a new slice project 43 slices init my-app ··· 47 deno task dev 48 ``` 49 50 - The `slices init` command creates a full-stack Deno app with OAuth authentication, automatically creates your slice on the network, and generates a type-safe TypeScript SDK. 51 52 ## Simple Example 53 ··· 105 106 ## Key Features 107 108 - - **Schema Validation**: Define lexicons that enforce data structure and constraints 109 - - **Auto-generated APIs**: REST endpoints created automatically from your schemas 110 - **TypeScript SDKs**: Type-safe clients generated from your lexicons 111 - **Real-time Sync**: Automatic synchronization across the AT Protocol network 112 - - **Advanced Querying**: Filter, sort, and paginate records with a powerful query API 113 - **OAuth Built-in**: Authentication with any AT Protocol account 114 115 ## When to Use Slices 116 117 Slices is ideal for: 118 119 - - **Social Applications**: Build specialized communities, forums, or social features 120 - **Content Platforms**: Create blogs, documentation sites, or media libraries 121 - **SaaS Products**: Develop collaborative tools with structured data needs 122 - **Web APIs**: Design REST APIs with automatic validation and documentation
··· 37 38 ```bash 39 # Install the CLI globally 40 + deno install -g -A jsr:@slices/cli --name slices 41 42 # Initialize a new slice project 43 slices init my-app ··· 47 deno task dev 48 ``` 49 50 + The `slices init` command creates a full-stack Deno app with OAuth 51 + authentication, automatically creates your slice on the network, and generates a 52 + type-safe TypeScript SDK. 53 54 ## Simple Example 55 ··· 107 108 ## Key Features 109 110 + - **Schema Validation**: Define lexicons that enforce data structure and 111 + constraints 112 + - **Auto-generated APIs**: REST endpoints created automatically from your 113 + schemas 114 - **TypeScript SDKs**: Type-safe clients generated from your lexicons 115 - **Real-time Sync**: Automatic synchronization across the AT Protocol network 116 + - **Advanced Querying**: Filter, sort, and paginate records with a powerful 117 + query API 118 - **OAuth Built-in**: Authentication with any AT Protocol account 119 120 ## When to Use Slices 121 122 Slices is ideal for: 123 124 + - **Social Applications**: Build specialized communities, forums, or social 125 + features 126 - **Content Platforms**: Create blogs, documentation sites, or media libraries 127 - **SaaS Products**: Develop collaborative tools with structured data needs 128 - **Web APIs**: Design REST APIs with automatic validation and documentation