Code Monkey home page Code Monkey logo

d-app-template's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

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

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

技术栈

Next.js App Router + TypeScript + Mui

CI

  • husky: git commit, git push check

功能

  • .prettierrc
  • scss
  • theme dark/light
  • Mui
  • Mui theme system
  • nprogress
  • wagmi
  • wagmi cli generate hooks
  • web3modal
  • web3modal theme
  • wallet connect
  • ethers: ^6.7.1
  • notistack
  • .env

开始开发

  1. 通过 Github template 功能创建新的仓库
  2. 在项目根目录执行 ./clearup.sh 该脚本会删除项目中的 demo 相关代码、文件,具体如下:
rm -rf src/demo
rm -rf src/components/demo
echo NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= >> .env.local

设置

通用设置在 src/config.ts

主题

亮/暗主题未具体实现 切换系统亮/暗模式,会影响背景色、文字颜色,这个在 global.css 有相关设置 然后,可以通过 setSettings 设置 mode 这个控制的是 muilight/dark

d-app-template's People

Contributors

zhangxiaoshang avatar

Watchers

 avatar  avatar

d-app-template's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.