Skip to content

Commit b2c0e89

Browse files
feat: set examples routes slug (#470)
* feat: set examples routes slug Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * 📄 Update LLMs.txt snapshot for PR review * docs: keep category examples Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * 📄 Update LLMs.txt snapshot for PR review --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d1e9de4 commit b2c0e89

3 files changed

Lines changed: 72 additions & 0 deletions

File tree

.llms-snapshots/llms-full.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,6 +2191,46 @@ The `deleteFilteredAssets` function allows you to delete multiple assets from a
21912191
import { deleteFilteredAssets } from "@junobuild/core";await deleteFilteredAssets({ collection: "my_collection_key", filter: { // Uses the same filter options as listAssets }});
21922192
```
21932193

2194+
# Frontend
2195+
2196+
Build full apps with Juno using your preferred frontend framework. These examples cover everything from auth to data handling with React, SvelteKit, Angular, Next.js, and more.
2197+
2198+
[## 📄️ Next.js
2199+
2200+
A fullstack note-taking app built with Next.js, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/nextjs.md)
2201+
2202+
[## 📄️ React TypeScript
2203+
2204+
A fullstack note-taking app built with React, TypeScript, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/react-typescript.md)
2205+
2206+
[## 📄️ React JavaScript
2207+
2208+
A fullstack note-taking app built with React, JavaScript, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/react-javascript.md)
2209+
2210+
[## 📄️ Vue
2211+
2212+
A fullstack note-taking app built with Vue, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/vue.md)
2213+
2214+
[## 📄️ SvelteKit
2215+
2216+
A fullstack note-taking app built with SvelteKit, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/sveltekit.md)
2217+
2218+
[## 📄️ Angular
2219+
2220+
A fullstack note-taking app built with Angular, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/angular.md)
2221+
2222+
[## 📄️ Vanilla JavaScript
2223+
2224+
A fullstack note-taking app built with vanilla JavaScript, and Tailwind CSS using Juno for authentication, data, and file storage.](/docs/examples/frontend/vanilla-javascript.md)
2225+
2226+
# Functions
2227+
2228+
Write serverless backend logic for your app using TypeScript or Rust. These examples show how to use hooks, assertions, and common function patterns on Juno.
2229+
2230+
[## 🗃️ Rust
2231+
2232+
4 items](/docs/examples/functions/rust.md)
2233+
21942234
# Angular Example
21952235

21962236
This project is a note-taking app template built with **Angular**, **TypeScript**, and **Tailwind CSS**, designed to demonstrate integration with Juno for app development. It showcases authentication, data storage, and file storage using Juno's Satellite container.
@@ -3113,6 +3153,26 @@ The following functions from `@junobuild/core` are used in this example:
31133153
| `uploadFile` | Upload a file to storage | [`src/components/Modal.vue`](https://github.com/junobuild/create-juno/blob/main/templates/vue-example/src/components/Modal.vue) | [Upload file](/docs/build/storage/development.md#upload-file) |
31143154
| `deleteAsset` | Delete a file from storage | [`src/components/Delete.vue`](https://github.com/junobuild/create-juno/blob/main/templates/vue-example/src/components/Delete.vue) | [Delete asset](/docs/build/storage/development.md#delete-asset) |
31153155

3156+
# Rust
3157+
3158+
Examples of writing serverless functions in Rust for Juno. Includes patterns like custom assertions, data manipulation and calls.
3159+
3160+
[## 📄️ Assertion
3161+
3162+
An example demonstrating how to write custom assertions in Rust for Juno serverless functions.](/docs/examples/functions/rust/assertion.md)
3163+
3164+
[## 📄️ Mutation
3165+
3166+
An example demonstrating how to modify and re-save documents in Juno Satellites using Rust hooks.](/docs/examples/functions/rust/mutating-docs.md)
3167+
3168+
[## 📄️ Asset Generation
3169+
3170+
An example showing how to dynamically generate and store assets (like JSON) in Storage using Rust in Juno Satellites.](/docs/examples/functions/rust/generating-assets.md)
3171+
3172+
[## 📄️ Canister Calls
3173+
3174+
An example showing how to call external canisters (e.g., ICRC ledger) from a serverless function written in Rust using Juno Satellites.](/docs/examples/functions/rust/canister-calls.md)
3175+
31163176
# Rust Assertion Example
31173177

31183178
This example demonstrates how to write a **custom assertion** in **Rust** for a Juno **serverless function**. It shows how to intercept and validate data operations—such as rejecting specific content—before it's written to the datastore.

.llms-snapshots/llms.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ Juno is your self-contained serverless platform for building full-stack web apps
4646
- [Collections](https://juno.build/docs/build/storage/collections.md): You can create or update a collection in the "Collections" tab in Juno's console under the storage view.
4747
- [Development](https://juno.build/docs/build/storage/development.md): This page explains how to manage assets using the Juno SDK, including uploading, listing, counting, and deleting files within your application. It also covers configuration options for optimizing storage and access control.
4848

49+
## Examples
50+
51+
- [Frontend](https://juno.build/docs/examples/frontend.md): Build full apps with Juno using your preferred frontend framework. These examples cover everything from auth to data handling with React, SvelteKit, Angular, Next.js, and more.
52+
- [Functions](https://juno.build/docs/examples/functions.md): Write serverless backend logic for your app using TypeScript or Rust. These examples show how to use hooks, assertions, and common function patterns on Juno.
53+
4954
## Examples - Frontend
5055

5156
- [Angular Example](https://juno.build/docs/examples/frontend/angular.md): A fullstack note-taking app built with Angular, and Tailwind CSS using Juno for authentication, data, and file storage.
@@ -56,6 +61,10 @@ Juno is your self-contained serverless platform for building full-stack web apps
5661
- [Vanilla JavaScript Example](https://juno.build/docs/examples/frontend/vanilla-javascript.md): A fullstack note-taking app built with vanilla JavaScript, and Tailwind CSS using Juno for authentication, data, and file storage.
5762
- [Vue Example](https://juno.build/docs/examples/frontend/vue.md): A fullstack note-taking app built with Vue, and Tailwind CSS using Juno for authentication, data, and file storage.
5863

64+
## Examples - Functions
65+
66+
- [Rust](https://juno.build/docs/examples/functions/rust.md): Examples of writing serverless functions in Rust for Juno. Includes patterns like custom assertions, data manipulation and calls.
67+
5968
## Examples - Functions - Rust
6069

6170
- [Rust Assertions Example](https://juno.build/docs/examples/functions/rust/assertion.md): An example demonstrating how to write custom assertions in Rust for Juno serverless functions.

sidebars.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const sidebars: SidebarsConfig = {
8989
label: "Frontend",
9090
link: {
9191
type: "generated-index",
92+
slug: "/examples/frontend",
9293
description:
9394
"Build full apps with Juno using your preferred frontend framework. These examples cover everything from auth to data handling with React, SvelteKit, Angular, Next.js, and more."
9495
},
@@ -107,6 +108,7 @@ const sidebars: SidebarsConfig = {
107108
label: "Functions",
108109
link: {
109110
type: "generated-index",
111+
slug: "/examples/functions",
110112
description:
111113
"Write serverless backend logic for your app using TypeScript or Rust. These examples show how to use hooks, assertions, and common function patterns on Juno."
112114
},
@@ -116,6 +118,7 @@ const sidebars: SidebarsConfig = {
116118
label: "Rust",
117119
link: {
118120
type: "generated-index",
121+
slug: "/examples/functions/rust",
119122
description:
120123
"Examples of writing serverless functions in Rust for Juno. Includes patterns like custom assertions, data manipulation and calls."
121124
},

0 commit comments

Comments
 (0)