GithubHelp home page GithubHelp logo

yash-sharma1 / learn-web3-dapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timikcool/learn-web3-dapp

0.0 0.0 0.0 2.05 MB

This Next.js app is designed to be used with the Figment Learn Pathways, to help developers learn about various blockchain protocols such as Solana, NEAR, Secret, Polygon and Polkadot!

Home Page: https://learn.figment.io/pathways

TypeScript 94.55% JavaScript 1.54% Shell 0.67% Rust 2.87% Solidity 0.38%

learn-web3-dapp's Introduction

๐Ÿค” What is learn-web3-dapp?

We made this decentralized application (dApp) to help developers learn about Web 3 protocols. It uses TypeScript, React, and various smart contract languages.

Following along with the Figment Learn Pathways, you will build up a simple web client using various JavaScript APIs to interact with different blockchain networks. Each protocol is slightly different, but we have attempted to standardize the workflow so that you can quickly get up to speed on networks like Solana, NEAR, Secret and Polygon!

Learn more about Figment.

๐Ÿง‘โ€๐Ÿ’ป How to use this repo

Clone the repo and install the dependencies with yarn:

git clone https://github.com/figment-networks/learn-web3-dapp.git
cd learn-web3-dapp
yarn

If you encounter any errors during this process, please join our Discord for help.

๐Ÿงฉ DataHub API keys

To make use of the Pathway content, you will require a DataHub account and a valid API key for the protocol you wish to access via DataHub's infrastructure. Sign up for a DataHub account and verify your email address, then visit the DataHub Services Dashboard and select the protocol you want to access. You will then be able to copy your personal API key.

You will need to create a new file in the project root directory ~/learn-web3-dapp/.env.local, copying the contents of the existing .env.example file. Your API key needs to be pasted into .env.local so that you can authenticate your connections with DataHub.

๐Ÿ’ป Running the development server

Start the Next.js development server on the default port 3000 with:

yarn dev

If your setup requires a specific port to allow inbound requests, or if you already have a service running on port 3000 - you can also specify a port with the --port flag:

yarn dev --port 3001

Once the server is running, you should see similar output:

yarn run v1.22.10
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from ~/learn-web3-dapp/.env.local
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
event - compiled successfully

You can now view the running application at http://localhost:3000 (or whichever port you specified)!

We sincerely hope you enjoy the Pathway content and thank you for using learn-web3-dapp to learn about blockchain protocols ๐Ÿš€

-- The Figment Learn Team

learn-web3-dapp's People

Contributors

zurgl avatar pyr0gan avatar guillaumegaluz avatar dvanderbeek avatar

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.