include README, update package.json

This commit is contained in:
2025-06-29 16:24:59 -04:00
parent 756c6d30c6
commit 5c42c0b58e
2 changed files with 16 additions and 1 deletions

15
README.md Normal file
View File

@ -0,0 +1,15 @@
## Pleroma -> Ollama Bot Setup
1. Clone project
2. Install npm 22.11.0 if you don't have it already
3. `cd` into the project directory
4. Run `npm install`
5. Run `npx prisma init --datasource-provider sqlite --output ../generated/prisma`
6. Run `npx prisma migrate dev --name init`
7. To run the software on a cronjob, use `npm run once`
### Database Migrations
If you add stuff to the schema, follow the [Prisma development workflow](https://www.prisma.io/docs/orm/prisma-migrate/workflows/development-and-production). This will apply the new schema to the database and generate a new Prisma client with type safety.
Setting as a system service will come at some point, or someone could contribute if they wanted.

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "tsc && node -r dotenv/config dist/main.js",
"once": "tsc && node -r dotenv/config dist/main.js",
"build": "tsc"
},
"type": "module",