https://github.com/dwarvesf/chatbot-builder
https://github.com/dwarvesf/chatbot-builder
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dwarvesf/chatbot-builder
- Owner: dwarvesf
- Created: 2024-04-05T07:13:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T03:44:57.000Z (about 2 years ago)
- Last Synced: 2024-05-23T03:45:49.535Z (about 2 years ago)
- Language: TypeScript
- Homepage: https://chatbot-builder-ten.vercel.app
- Size: 1.38 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.dev
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## Dev Readme
### Install dependencies
```
make install
```
### Local development
Start the db
```
make local-up
```
### Migrate
Would need to run:
```
patch -p1 -N < patches/drizzle-kit.bin.cjs.patch || echo ''
patch -p1 -N < patches/drizzle-kit.utils.js.patch || echo ''
```
To patch the fix of `vector(1024)` not found issue for the first time running the migration
```
make db-migrate
```
### Seed
```
make db-seed
```
### How to migrate database
- Edit the schema file in `src/migration/schema.ts`
- Apply the migration by running `make db-migrate`
### How to trigger migration on qa
Currently we migrate manually on qa server. Would add cicd later.
- Update env `DATABASE_URL` in .env file
- Run `make db-migrate`