doc update: added db setup instructions

This commit is contained in:
dswbx
2024-11-19 15:10:40 +01:00
parent 79e59f4aa7
commit 598e158738
6 changed files with 67 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ Bun.serve({
console.log("Server running at http://localhost:1337");
```
For more information about the connection object, refer to the [Setup](/setup) guide.
Run the application using Bun by executing:
```bash

View File

@@ -11,8 +11,8 @@ and then install bknd as a dependency:
<InstallBknd />
## Serve the API
## Serve the API
``` ts
import { serve } from "bknd/adapter/cloudflare";
@@ -30,6 +30,7 @@ export default serve(
}
);
```
For more information about the connection object, refer to the [Setup](/setup) guide.
Now run the worker:
```bash

View File

@@ -33,6 +33,7 @@ export default serve({
}
});
```
For more information about the connection object, refer to the [Setup](/setup) guide.
## Enabling the Admin UI
Create a file `[[...admin]].tsx` inside the `pages/admin` folder:

View File

@@ -30,6 +30,7 @@ const handler = serve({
export const loader = handler;
export const action = handler;
```
For more information about the connection object, refer to the [Setup](/setup) guide.
## Enabling the Admin UI
Create a new splat route file at `app/routes/admin.$.tsx`: