isaldin / yGoo_gabblers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yearn Web Lib

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

Install and run

  1. Clone as template from GitHub
  2. Run yarn
  3. Run yarn run dev
  4. Open the browser and navigate to http://localhost:3000

Usage

Meta tags and Meta Data

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.

IPFS deployement

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 node
  • IPFS_PORT: the port of the IPFS node
Run with Docker

This project can be run with Docker.

  1. Build the image: docker build -t [name-of-your-container] .
  2. Run the container: docker run -p 3000:3000 [name-of-your-container]
  3. Open the browser and navigate to http://localhost:3000

Development process

If you use custom dev rpc for working (http://95.216.241.177/secret/gobble/ in our case), just run in separate terminal mini
json-rpc proxy from helpers/json-rpc-proxy folder with command yarn start (don't forget to install deps).

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 87.9%Language:JavaScript 6.3%Language:SCSS 5.8%