@voscarmv/aimessagestore 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Message storage and retrieval backend for [@voscarmv/aichatbot](https://www.npmjs.com/package/@voscarmv/aichatbot)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Usage
|
|
6
6
|
|
|
7
|
-
You may
|
|
7
|
+
You may use this as per [the demo.](https://github.com/voscarmv/aibot)
|
|
8
|
+
|
|
9
|
+
Or as a standalone backend for a @voscarmv/aichatbot project. For that, install `postgresql` and create a new username, password and database, with this script:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
12
|
#!/bin/bash
|
|
@@ -33,4 +35,4 @@ echo "DATABASE_URL=postgres://$PGUSER:$PASS@localhost/$DB" >> .env
|
|
|
33
35
|
echo "✅ Database, user, and .env file created. Edit .env if needed."
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
And then just run an instance of `MessageStoreBackend()` as in [this example.](https://github.com/voscarmv/aibot/blob/main/src/server.ts)
|