๐Ÿ“ฆ nrjdalal / start-pro

โ˜… 4 stars โ‘‚ 0 forks ๐Ÿ‘ 4 watching
๐Ÿ“ฅ Clone https://github.com/nrjdalal/start-pro.git
HTTPS git clone https://github.com/nrjdalal/start-pro.git
SSH git clone git@github.com:nrjdalal/start-pro.git
CLI gh repo clone nrjdalal/start-pro
Neeraj Dalal Neeraj Dalal Merge pull request #7 from nrjdalal/virtual-next-routes 883a81d 1 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“„ .example.env
๐Ÿ“„ .gitignore
๐Ÿ“„ bun.lock
๐Ÿ“„ components.json
๐Ÿ“„ drizzle.config.ts
๐Ÿ“„ eslint.config.mjs
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ routes.ts
๐Ÿ“„ tsconfig.json
๐Ÿ“„ vite.config.ts
๐Ÿ“„ README.md

start-pro

A modern, production-ready React starter template powered by TanStack Start, Vite, and Tailwind CSS v4.

Features

.
โ”œโ”€โ”€ layout.tsx
โ”œโ”€โ”€ page.tsx
โ”œโ”€โ”€ (dashboard)
โ”‚   โ”œโ”€โ”€ layout.tsx
โ”‚   โ””โ”€โ”€ x
โ”‚       โ””โ”€โ”€ page.tsx
โ””โ”€โ”€ api
    โ””โ”€โ”€ auth
        โ””โ”€โ”€ [...all]
            โ””โ”€โ”€ route.ts

Getting Started

Prerequisites

  • Bun (recommended) or Node.js

Installation

  • Clone the repository:
git clone <repository-url>
   cd start-pro

  • Install dependencies:
bun install

  • Set up environment variables:
cp .example.env .env

Update .env with your database credentials and other secrets.

  • Push the database schema:
bun run db:push

  • Start the development server:
bun run dev

Scripts

  • dev: Start the development server on port 3000.
  • build: Build the application for production.
  • start: Preview the production build.
  • db:push: Push schema changes to the database.
  • db:studio: Open Drizzle Studio to manage your database.
  • lint: Run linting checks.

Virtual Next Routes

This project utilizes virtual-next-routes to provide a familiar Next.js-style file-system routing experience while leveraging the power of TanStack Router. This allows for defining routes using the app directory structure (e.g., app/page.tsx, app/api/route.ts).