SvelteKit-EVM-Bootstrap is a boilerplate project built using SvelteKit, which provides a modern, lightweight framework for building web3 applications. It includes several popular libraries and tools to help you quickly build and deploy your blockchain-based web application, such as Web3-Onboard, Viem, Typescript, Tailwind, Playwright, Vitest, Prettier, and ESLint.
# Install dependencies
pnpm install
# To run the development server, run:
pnpm dev
# or
# This will start the server and open the app in a new browser tab. You can also run the server without opening the app with:
pnpm dev -- --open
To create a production version of your app:
pnpm run build
You can preview the production build with pnpm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
Viem Viem is a smart contract management library that makes it easy to deploy and interact with smart contracts on the blockchain. For more information, please refer to the Viem Documentation
Web3-Onboard Web3-Onboard is a library that helps connect web3 wallets to your application, supporting most of the popular wallets. For more information, please refer to the Web3-Onboard Documentation
Although useAuth()
might look like a hook, it's actually just a function that names the connection function and makes it easier to access the Onboard object instance. You can use Viem without using the concept of hooks, as you would in the examples provided in their respective documentation.