Skip to content

alekzajic/vitality

Repository files navigation


Vitality · React Template

Opinionated React Template


Vitality

Opinionated React template setup with modern tooling, here some recommendations if needed

Technologies and tools

Features

File based routing

Conventions
  • Index routes src/pages/index.tsx to /
  • Nested routes src/pages/nested/within.tsx to /nested/within
  • Dynamic routes src/pages/dynamic/[timestamp].tsx to /dynamic/:timestamp
  • Catch all routes src/pages/catch/[...all].tsx to /catch/*
  • None matching routes src/pages/404.tsx

Authentication example

Custom hooks

Usage

By generating from this template then/or cloning locally

Commands

# install dependencies
pnpm install

# start development server · http://localhost:3000
pnpm dev

# build client for production
pnpm build

# start production preview · http://localhost:5000
pnpm start

# run tests
pnpm test

Recommendations

Frameworks

Languages

Components

Build tools

Server state

Data fetching

Global state

Animation

License

MIT