Coder Social home page Coder Social logo

ygoo's Introduction

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

ygoo's People

Stargazers

 avatar

Watchers

Major avatar

Forkers

isaldin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.