Skip to content

Teolhyn/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatbot

This project was created with Better-T-Stack, a modern TypeScript stack that combines React, React Router, Express, ORPC, and more.

Features

  • TypeScript - For type safety and improved developer experience
  • React Router - Declarative routing for React
  • TailwindCSS - Utility-first CSS for rapid UI development
  • shadcn/ui - Reusable UI components
  • Express - Fast, unopinionated web framework
  • oRPC - End-to-end type-safe APIs with OpenAPI integration
  • Bun - Runtime environment
  • Prisma - TypeScript-first ORM
  • SQLite/Turso - Database engine
  • Authentication - Better-Auth
  • Turborepo - Optimized monorepo build system

Getting Started

First, install the dependencies:

npm install

Database Setup

This project uses SQLite with Prisma.

  1. Start the local SQLite database:
cd apps/server && npm run db:local
  1. Update your .env file in the apps/server directory with the appropriate connection details if needed.

  2. Generate the Prisma client and push the schema:

npm run db:push

Then, run the development server:

npm run dev

Open http://localhost:5173 in your browser to see the web application. The API is running at http://localhost:3000.

Project Structure

chatbot/
├── apps/
│   ├── web/         # Frontend application (React + React Router)
│   └── server/      # Backend API (Express, ORPC)

Available Scripts

  • npm run dev: Start all applications in development mode
  • npm run build: Build all applications
  • npm run dev:web: Start only the web application
  • npm run dev:server: Start only the server
  • npm run check-types: Check TypeScript types across all apps
  • npm run db:push: Push schema changes to database
  • npm run db:studio: Open database studio UI

About

OpenAI API based chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors