https://github.com/ohager/signum-twitter-tipbot
https://github.com/ohager/signum-twitter-tipbot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ohager/signum-twitter-tipbot
- Owner: ohager
- License: mit
- Created: 2022-10-01T20:20:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T15:51:48.000Z (almost 4 years ago)
- Last Synced: 2025-11-30T03:38:42.741Z (8 months ago)
- Language: JavaScript
- Size: 95.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Signum Twitter Tipbot
# Development
## Prerequisites
This bot needs a database connected to it. This project uses [Prisma](https://prisma.io) as DB abstraction layer.
The original version uses the DBaaS [Planetscale](https://planetscale.com), but you may connect to other RDMS, i.e. Postgres, Sqlite, MariaDB etc
## Planetscale Migrations
> The scripts for database migration are exclusively for Planetscale. When using another database other scripts need to be used.
Each time the database model needs to be adjusted, i.e. the `schema.prisma` changed, you simply run `yarn db:update`.
This updates the configured database (configure in `.env`), which should always be the __non-production__ database.
With Planetscale you use - similar to git - branches, which can be merged to other branches then.
1. Open a PR with `yarn db:deploy-request `
2. If 1 was successful and tests work as expected run `yarn db:deploy `, where `number_of_dr` is the number returned by 1
# Design
## User Input/Output
