Attention: The code in this repository is intended for experimental use only and is not fully tested, documented, or supported by SingleStore. Visit the SingleStore Forums to ask questions about this repository.
- Sign up for SingleStore and create
books_chat_mysql
and/orbooks_chat_kai
databases - Create an
.env
file based on the.env.sample
file - Install dependencies by running:
npm i
- Start the application by running:
sh ./scripts/start.sh
- Open http://localhost:3000 with your browser.
- Sign up for SingleStore and create
books_chat_mysql
and/orbooks_chat_kai
databases - Create an
.env
file based on the.env.sample
file - Install dependencies once by running:
npm i
- Setup a database by running:
npm run db:setup
- Build the application once by running:
npm run build
- Start development environment by running:
npm run dev
- Open http://localhost:3000 with your browser.
- If you have a
mysql
db, theNEXT_PUBLIC_CONNECTION_TYPE
variable must have the valuemysql
- If you have a
kai
db, theNEXT_PUBLIC_CONNECTION_TYPE
variable must have the valuekai
- If you have both databases,
NEXT_PUBLIC_CONNECTION_TYPE
variable must have the valuemysql,kai