This commit is contained in:
+12
-12
@@ -1,5 +1,5 @@
|
||||
# bknd starter: Nuxt
|
||||
A minimal example of a Nuxt project with bknd integration.
|
||||
# userbase starter: Nuxt
|
||||
A minimal example of a Nuxt project with userbase integration.
|
||||
|
||||
## Project Structure
|
||||
|
||||
@@ -20,14 +20,14 @@ Inside of your Nuxt project, you'll see the following folders and files:
|
||||
│ └── pages
|
||||
│ ├── index.vue
|
||||
│ └── user.vue
|
||||
├── bknd.config.ts
|
||||
├── userbase.config.ts
|
||||
├── bun.lock
|
||||
├── nuxt.config.ts
|
||||
├── package.json
|
||||
├── public
|
||||
│ ├── admin # generated by bknd and contains the admin UI
|
||||
│ ├── bknd.ico
|
||||
│ ├── bknd.svg
|
||||
│ ├── admin # generated by userbase and contains the admin UI
|
||||
│ ├── userbase.ico
|
||||
│ ├── userbase.svg
|
||||
│ ├── favicon.ico
|
||||
│ ├── file.svg
|
||||
│ ├── globe.svg
|
||||
@@ -37,17 +37,17 @@ Inside of your Nuxt project, you'll see the following folders and files:
|
||||
├── README.md
|
||||
├── server
|
||||
│ ├── middleware
|
||||
│ │ └── bknd.ts # intercepts api and admin ui requests
|
||||
│ │ └── userbase.ts # intercepts api and admin ui requests
|
||||
│ ├── routes
|
||||
│ │ └── todos.post.ts
|
||||
│ └── utils
|
||||
│ └── bknd.ts # initializes bknd instance
|
||||
│ └── userbase.ts # initializes userbase instance
|
||||
└── tsconfig.json
|
||||
```
|
||||
|
||||
Here is a quick overview about how to adjust the behavior of `bknd`:
|
||||
* Initialization of the `bknd` config with helper functions are located at `src/server/utils/bknd.ts`
|
||||
* Admin UI is rendered at `src/server/middleware/bknd.ts`
|
||||
Here is a quick overview about how to adjust the behavior of `userbase`:
|
||||
* Initialization of the `userbase` config with helper functions are located at `src/server/utils/userbase.ts`
|
||||
* Admin UI is rendered at `src/server/middleware/userbase.ts`
|
||||
|
||||
## Commands
|
||||
|
||||
@@ -61,4 +61,4 @@ All commands are run from the root of the project, from a terminal:
|
||||
|
||||
## Want to learn more?
|
||||
|
||||
Feel free to check [our documentation](https://docs.bknd.io/integration/nuxt) or jump into our [Discord server](https://discord.gg/952SFk8Tb8).
|
||||
Feel free to check [our documentation](https://docs.userbase.io/integration/nuxt) or jump into our [Discord server](https://discord.gg/952SFk8Tb8).
|
||||
Reference in New Issue
Block a user