├── .gitignore ├── README.md ├── components ├── .DS_Store ├── InstructionsComponent.jsx └── navigation │ └── navbar.jsx ├── layout └── mainLayout.jsx ├── next.config.js ├── package-lock.json ├── package.json ├── pages ├── _app.js └── index.jsx ├── public ├── .DS_Store └── cw3d-logo.png └── styles ├── Home.module.css ├── InstructionsComponent.module.css ├── Navbar.module.css └── globals.css /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CW3D Dapp Boilerplate For Netlify 2 | 3 | This boilerplate is set up to be deployed on Netlify and you can directly deploy this project by clicking the button below: 4 | 5 | [](https://app.netlify.com/start/deploy?repository=https://github.com/alchemyplatform/netlify-alchemy-dapp-boilerplates) 6 | 7 | Visit the [Live Demo here](https://alchemy-cw3d-dapp-boilerplate.netlify.app/) 8 | 9 | ## Resources 10 | Please refer to CW3D's documentation and the following useful links for an in depth explanation of how to work with projects bootstrapped with CW3D: 11 | 12 | - [Docs](https://docs.alchemy.com/docs/create-web3-dapp) - Everything you need to know when using CW3D 13 | - [GitHub](https://github.com/alchemyplatform/create-web3-dapp) - look at the extensive code example or start contributing 14 | - [Website](https://createweb3dapp.alchemy.com) - Learn more about CW3D and add components to your project 15 | - [Templates](https://createweb3dapp.alchemy.com/#templates) - Check out the pre-built project templates 16 | - [Components Library](https://createweb3dapp.alchemy.com/#components) - Add features directly to your project through components 17 | - [Examples](https://github.com/alchemyplatform/create-web3-dapp-examples) - See the components implemented in a real world dapp 18 | - [Community](https://t.me/createweb3dapp) - Meet other builders, get support, and give feedback! 19 | 20 | ## Overview 21 | 22 | This project serves as a boilerplate for creating decentralized applications (dApps) using [Create Web3 Dapp](https://github.com/alchemyplatform/create-web3-dapp). It is preconfigured to be deployed on [Netlify](https://www.netlify.com/), providing you with a seamless way to get your dApp up and running in no time. 23 | 24 | This boilerplate is built using [CW3D (Create Web3 Dapp)](https://github.com/alchemyplatform/create-web3-dapp), a powerful tool developed by [Alchemy](https://www.alchemy.com/) that allows developers to rapidly create and deploy dApps. 25 | 26 | ## What's Included? 27 | 28 | This boilerplate has everything you need to start building a dapp: 29 | 30 | - Next.js 31 | - Wagmi Hooks 32 | - Ethers.js 33 | - Rainbowkit 34 | - Alchemy SDK 35 | 36 | ## Supported Chains 37 | 38 | The project supports all the major EVM chains: 39 | 40 | - Ethereum 41 | - Polygon 42 | - Polygon zkEVM 43 | - Arbitrum 44 | - Optimism 45 | 46 | ## Getting Started 47 | 48 | ### Prerequisites 49 | 50 | To get started with this boilerplate, you'll need to have the following software installed on your local machine: 51 | 52 | - [Node.js](https://nodejs.org/) 53 | - [Yarn](https://yarnpkg.com/) 54 | - [Git](https://git-scm.com/) 55 | 56 | ### Installation 57 | 58 | 1. Clone the repository to your local machine: 59 | ``` 60 | git clone https://github.com/alchemyplatform/netlify-alchemy-dapp-boilerplates.git 61 | ``` 62 | 2. Navigate to the project directory: 63 | ``` 64 | cd netlify-alchemy-dapp-boilerplates 65 | ``` 66 | 3. Install the required dependencies: 67 | ``` 68 | yarn install 69 | ``` 70 | 71 | ### Running the Project 72 | 73 | 1. Start the local development server: 74 | ``` 75 | yarn run dev 76 | ``` 77 | 2. Open your browser and navigate to [`http://localhost:3000/`](http://localhost:3000/) to view the dApp in action. 78 | 79 | ### Deploying to Netlify 80 | 81 | This boilerplate is set up to be deployed on Netlify and you can directly deploy this project by clicking the button below: 82 | 83 | [](https://app.netlify.com/start/deploy?repository=https://github.com/alchemyplatform/netlify-alchemy-dapp-boilerplates) 84 | 85 | If you prefer to deploy it manually, you can follow these steps: 86 | 87 | 1. Sign up for a Netlify account at [netlify.com](https://www.netlify.com/) if you don't already have one. 88 | 2. Install the Netlify CLI: 89 | ``` 90 | npm install -g netlify-cli 91 | ``` 92 | 3. Run the following command to deploy your dApp to Netlify: 93 | ``` 94 | netlify deploy 95 | ``` 96 | 4. Follow the prompts and provide the required information. Your dApp will be deployed and accessible via a unique URL. 97 | 98 | ## Project Structure 99 | 100 | The boilerplate project is a Next.js application with the following structure: 101 | 102 | ``` 103 | 📦root 104 | ┣ 📂components 105 | ┃ ┣ 📂navigation 106 | ┃ ┃ ┗ 📜navbar.jsx 107 | ┃ ┗ 📜InstructionsComponent.jsx 108 | ┣ 📂layout 109 | ┃ ┗ 📜mainLayout.jsx 110 | ┣ 📂pages 111 | ┃ ┣ 📜_app.js 112 | ┃ ┗ 📜index.jsx 113 | ┣ 📂public 114 | ┃ ┗ 📜cw3d-logo.png 115 | ┣ 📂styles 116 | ┃ ┣ 📜Home.module.css 117 | ┃ ┣ 📜InstructionsComponent.module.css 118 | ┃ ┣ 📜Navbar.module.css 119 | ┃ ┗ 📜globals.css 120 | ┣ 📜.gitignore 121 | ┣ 📜README.md 122 | ┣ 📜next.config.js 123 | ┣ 📜package-lock.json 124 | ┗ 📜package.json 125 | ``` 126 | 127 | Start editing the `pages/index.jsx` file to customize the project according to your own needs! 128 | -------------------------------------------------------------------------------- /components/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alchemyplatform/netlify-alchemy-dapp-boilerplates/08094ae2490e45c49885364e8334e560bb086a33/components/.DS_Store -------------------------------------------------------------------------------- /components/InstructionsComponent.jsx: -------------------------------------------------------------------------------- 1 | import styles from "../styles/InstructionsComponent.module.css"; 2 | import Router, { useRouter } from "next/router"; 3 | export default function InstructionsComponent() { 4 | const router = useRouter(); 5 | return ( 6 |
12 | Get started by editing this page in{" "} 13 | /pages/index.js 14 |
15 |Add Components
25 |Explore Templates
34 |Visit Docs
47 |