Don’t waste time setting up your development environment.
Start building your Cardano dApp right away.
This template automatically deployes your dApp on merge with main. You can visit the website to see the working template in action.
I came across Cor's Svelte Effect Nix Template, which helped me get started with Svelte.
However, when I wanted to start building dApps with MeshJS, I ran into a lot of issues setting up a working environment.
After spending too much time fixing bugs I didn’t want to deal with, I decided to create a template to help other Cardano developers get started faster.
- Svelte – Frontend framework
- MeshJS – Easy interaction with Cardano wallets
- Tailwind CSS – Utility-first styling
- TypeScript + Effect – Robust and type-safe programming
- Nix Flakes – Reproducible dev environment and build system
- GitHub Actions – Deploys the Nix build as a static site via GitHub Pages
The best way to use this template is with Nix flakes.
-
Enter the development shell:
nix develop
-
Run the development server:
nix run .#dev -
Build the app as a static site:
nix build
-
Preview the build locally:
nix run
⚠️ Note: Do not deleteflake.nixorflake.lock— they are required for deploying to GitHub Pages.
While using Nix is highly recommended for a robust setup, you can still use this template with just npm:
-
Run the development server:
cd site npm install npm run dev -
Build the static website:
cd site npm run build
Contributions are very welcome!
Feel free to open an issue or submit a pull request.