Skip to content

turbo-eth/template-xmtp-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 Chatter - XMTP App Template

Web3 App Template built using Next.js, Privy, Tailwind, XMTP, and more.

MIT license

Deploy with Vercel

Getting Started

The env variable NEXT_PUBLIC_PRIVY_APP_ID is required

cp .env.example .env

The pnpm CLI is the recommended package manager but npm and yarn should work too.

pnpm  install

Development

pnpm  dev

Build

pnpm  build

Web3 Core

  • WAGMI CLI - Automatic React Hook Generation

  • Privy - Wallet connection manager

Web2 Frameworks

Developer Experience

  • TypeScript – Static type checker for end-to-end typesafety

  • Prettier – Opinionated code formatter for consistent code style

  • ESLint – Pluggable linter for Next.js and TypeScript

User Interface

  • TailwindCSS – Utility-first CSS framework for rapid UI development

  • Radix – Primitives like modal, popover, etc. to build a stellar user experience

  • Framer Motion – Motion library for React to animate components with ease

  • React Icons – Beautifully simple, pixel-perfect icons

The ui.shadcn.com components are included in the /components/shared/ui folder.

💻 Developer Experience

🐕 What is husky

Husky improves your git commits.

You can use it to lint your commit messages, run tests, lint code, etc... when you commit or push. Husky supports all Git hooks.

🪝 Hooks

  • pre-commit: lint app codebase

  • commit-msg: apply commintlint

📋 What is commitlint

commitlint checks if your commit messages meet the conventional commit format.

In general the pattern mostly looks like this:

type(scope?): subject #scope is optional; multiple scopes are supported (current delimiter options: "/", "\" and ",")

Real world examples can look like this:

chore: run tests on travis ci
fix(server): send cors headers
feat(blog): add comment section

Common types according to commitlint-config-conventional (based on the Angular convention) can be:

  • build

  • chore

  • ci

  • docs

  • feat

  • fix

  • perf

  • refactor

  • revert

  • style

  • test

Acknowledgements

Original template was forked from https://github.com/wslyvh/nexth

Thank you @wslyvh 🙏


Copyright 2023 Kames Geraghty

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.3%
  • JavaScript 3.4%
  • CSS 2.2%
  • Shell 0.1%