Skip to content

worldofwomen/template-next-shadcn-web3

Repository files navigation

wmn

Initialization

This project has been initialized with npx create-next-app@latest.

Configuration

  1. Install nvm if you don't have it.

  2. Ensure you're using the node version used in production. From the root directory of the repo, execute the following command:

nvm use
  1. The project is configured to run only with the package manager yarn.

  2. Install dependencies:

yarn
  1. This project uses Tailwind CSS in combination with some plugins ESLint and Prettier for formatting.

    👋 VSCode/ESLint does not pick newly installed packages in the node_modules directory. After installing the packages for the first time, restart the VSCode workspace.

  2. Run the development server:

yarn dev
  1. Open http://localhost:3000 with your browser to see the result.

CI

  1. Commit rules:
    • This repo uses Conventional Commits standard
    • and commitlint executed in a husky hook to check them
# wrong example
git commit -m "add commitlint"
⏳   input: add commitlint
❌   subject may not be empty [subject-empty]
❌   type may not be empty [type-empty]
❌   found 2 problems, 0 warnings
ℹ️   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
husky - commit-msg hook exited with code 1 (error)
# good example
git commit -m "ci: add commitlint"

Supabase

Before running theses command, start by link your local client to the project.

yarn supabase login
yarn supabase link

Generate types for the project to produce the types/supabase.ts file.

yarn typegen

About

A template for using Nextjs with Shadcn and Web3 features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published