🚀 This is a Starknet Dapp template built with Next.js, Tailwind CSS, TypeScript, and DaisyUI. Our template focuses on providing an excellent developer experience, integrating the latest technologies and tools, including crucial Starknet-related libraries (@starknet-react/chains, @starknet-react/core, starknet, get-starknet-core). It empowers developers to swiftly construct powerful Starknet Dapps.
You can directly use this template on GitHub by clicking the "Use this template" button.
Clone this template and kickstart your Starknet Dapp development:
git clone https://github.com/CerberusChaos/Starknet-Dapp-Template.git your-project-name
cd your-project-name
npm install
npm run dev
Visit http://localhost:3000 to embark on your development journey.
- 🔥 Powered by the latest Next.js for static site generation
- 🎨 Selective use of Tailwind CSS and DaisyUI for flexible UI design
- 💅 Optimized style processing: PostCSS, integrated with
styled-jsx
- 🚀 Enhanced development experience: Integration with Starknet-React for rapid integration of Starknet features
- 🎉 Type checking with TypeScript
- ✅ Strict mode for TypeScript and React 18
- ✏️ Code linting and formatting: ESLint and Prettier
- 🦊 Git workflow enhancements: Husky and Lint-staged
- 🗂 Comprehensive development tooling: VSCode, Netlify, PostCSS, ESLint, Prettier, TypeScript
- ⚙️ Build optimization: Bundler Analyzer
- 🖱️ Easy deployment: Supports one-click deployment to Vercel and Netlify
- ☕ Automatic minification of HTML & CSS for improved performance
- 💨 Rapid live reload for increased development efficiency
- ✅ Intelligent cache management for content freshness
- 🌐 Built-in Starknet-React for simplified Dapp development
- Minimalistic code design, focusing on Dapp business logic
- Optimized SEO performance for increased discoverability
- 🚀 Production-ready environment, ensuring reliability and efficiency
Our template includes the following components for your convenience:
- WalletConnect
- Navbar
- Banner
- Footer
- Meta
- More components available in our Components.
- Node.js and npm
Easily customize based on your requirements:
src/styles/global.css
: Your Tailwind CSS customized CSS fileutils/AppConfig.ts
: Template configuration filesrc/pages/index.tsx
: Customize the homepage using theBase
componentsrc/template/Base.tsx
andsrc/templates/*
: Component and template layerssrc/*
: Atomic components supporting component blocks
One-click production-ready build:
npm run build
npm run start
.
├── README.md # README file, contains the project description and usage guidelines.
├── next.config.js # Next.js configuration file
├── public # Public folder for static files.
│ └── assets
│ └── images # Image files
├── src
│ ├── connectors # Connectors, used to connect to external services or APIs
│ ├── layout # Layout component, builds the basic layout of the page
│ ├── utils # Utilities folder, contains helper functions and tools
│ ├── styles # PostCSS styles folder, using Tailwind CSS
│ ├── components # Components folder, contains reusable UI components.
│ ├── templates # Templates folder, holding page and layout templates
│ └── pages # Pages folder for Next.js, holds the application's pages
├── tailwind.config.js # The Tailwind CSS configuration file
└── tsconfig.json # TypeScript configuration file
We welcome and encourage community contributions to this project. If you encounter issues or have good suggestions, feel free to open an issue.
🌟 Created a StarkNet project using our template? We're excited to share your work with the global StarkNet community! Simply email us your project name and GitHub link, and we'll feature your project in our README and on Discord. This is a great opportunity to increase your project's visibility and join our vibrant StarkNet community!