Skip to content

MonsterDeveloper/t3-chat-cloneathon

Repository files navigation

Getting Started

Installation

Install the dependencies:

bun i

Development

Run an initial database migration:

bun db:push

Start the development server with HMR:

bun dev

Your application will be available at http://localhost:5173.

Building for Production

Create a production build:

bun run build

Deployment

Deployment is done using the Wrangler CLI.

First, you need to create a d1 database in Cloudflare.

bunx wrangler d1 create <name-of-your-database>

Be sure to update the wrangler.toml file with the correct database name and id.

You will also need to update the drizzle.config.ts file, and then run the production migration:

bun db:generate
bun db:migrate

To build and deploy directly to production:

bun run deploy

To deploy a preview URL:

bunx wrangler versions upload

You can then promote a version to production after verification or roll it out progressively.

bunx wrangler versions deploy

Styling

This template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever CSS framework you prefer.


Built with ❤️ using React Router.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •