The Yearn Web Template provides an easy way to bootstrap a new Yearn Web project.
This include the default repo structure and configurations with the latest dependencies and compatible web-lib version.
The stack used for this project is the following:
- 💙 Yearn Web Lib — Base for our web-lib
- 🚀 Next — JavaScript library for user interfaces
- ▲ Vercel — Cloud deployment platform
- 📄 TypeScript for static type checking
- 💄 ESLint for code linting
- Clone as template from GitHub
- Run
yarn
- Run
yarn run dev
- Open the browser and navigate to
http://localhost:3000
You can update the public/manifest.json
file which will be use to handle the meta tags and for the Gnosis wallet support:
- Update
name
with your project name - Update
description
with your project description - Update
iconPath
with the relative path to your SVG icon (ideally, it should stay as is) - Update
locale
for the default language of your project - Update
uri
with the base path of your project. - Update
og
with the path to your OG image. - Update
twitter
with your twitter handle - Update
github
with your project GitHub link.
More options are available in the public/manifest.json
file.
By default, IPFS auto deployments are disabled. You can enable the workflow by editing the .github/workflows/ipfs.yml
file, un-commenting lines 5-6, enabling an IPFS deployment each time a push occurs on the main
branch.
Otherwise, you can go in actions and run the ipfs
action.
Two environment variables are required to make it work, which are configurable in your Github Project Secret Variables:
IPFS_HOST
: the host of the IPFS nodeIPFS_PORT
: the port of the IPFS node
This project can be run with Docker.
- Build the image:
docker build -t [name-of-your-container] .
- Run the container:
docker run -p 3000:3000 [name-of-your-container]
- Open the browser and navigate to
http://localhost:3000