Talor-A/ta

โ˜… 0Forks 0TypeScriptGitHub โ†—Compare

README

Welcome to React Router!

A modern, production-ready template for building full-stack React applications using React Router.

Features

  • ๐Ÿš€ Server-side rendering
  • โšก๏ธ Hot Module Replacement (HMR)
  • ๐Ÿ“ฆ Asset bundling and optimization
  • ๐Ÿ”„ Data loading and mutations
  • ๐Ÿ”’ TypeScript by default
  • ๐Ÿ“– React Router docs

Getting Started

Installation

Install the dependencies:

npm install

Development

Run an initial database migration:

npm run db:migrate

Start the development server with HMR:

npm run 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.

bun 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 run db:migrate-production

To build and deploy directly to production:

bun run deploy

To deploy a preview URL:

bun wrangler versions upload

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

bun wrangler versions deploy

Built with โค๏ธ using React Router.

Contributors

Talor-A

Issues