This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# bknd starter: Node.js
|
||||
A minimal Node.js project with bknd integration.
|
||||
# userbase starter: Node.js
|
||||
A minimal Node.js project with userbase integration.
|
||||
|
||||
## Project Structure
|
||||
|
||||
@@ -11,7 +11,7 @@ Inside of your Node.js project, you'll see the following folders and files:
|
||||
└── package.json
|
||||
```
|
||||
|
||||
To update `bknd` config, check `index.js`.
|
||||
To update `userbase` config, check `index.js`.
|
||||
|
||||
## Commands
|
||||
|
||||
@@ -25,4 +25,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/node) or jump into our [Discord server](https://discord.gg/952SFk8Tb8).
|
||||
Feel free to check [our documentation](https://docs.userbase.io/integration/node) or jump into our [Discord server](https://discord.gg/952SFk8Tb8).
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { serve } from "bknd/adapter/node";
|
||||
import { serve } from "userbase/adapter/node";
|
||||
|
||||
// Actually, all it takes is the following line:
|
||||
// serve();
|
||||
|
||||
// this is optional, if omitted, it uses an in-memory database
|
||||
/** @type {import("bknd/adapter/node").NodeBkndConfig} */
|
||||
/** @type {import("userbase/adapter/node").NodeUserbaseConfig} */
|
||||
const config = {
|
||||
connection: {
|
||||
url: "data.db",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"dev": "tsx --watch index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"bknd": "file:../../app",
|
||||
"userbase": "file:../../app",
|
||||
"@hono/node-server": "^1.13.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user