GithubHelp home page GithubHelp logo

dongkyun2331 / evm-rpc-rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fxgst/evm-rpc-rust

0.0 0.0 0.0 435 KB

Starter Project for ICP x ETH with Vite & React

Home Page: https://gitpod.io/#https://github.com/fxgst/evm-rpc-rust

Python 8.16% Rust 53.87% TypeScript 20.56% HTML 1.93% SCSS 15.49%

evm-rpc-rust's Introduction

Vite + React + Rust + EVM RPC

This template gives you everything you need to build a full-stack Web3 application on the Internet Computer. It includes a frontend built with Vite and React, a backend written in Rust, and the EVM RPC canister to directly connect to Ethereum or other EVM-based blockchains.

Get started with one click:

In your browser:

In Gitpod

Open in Gitpod

or GitHub Codespaces

Open in GitHub Codespaces

Locally:

Make sure you have you have Docker and VS Code installed and running, then click the button below

Open locally in Dev Containers

Or do the manual setup:

Make sure that Node.js >= 21 and dfx >= 0.18 are installed on your system.

Run the following commands in a new, empty project directory:

git clone https://github.com/fxgst/evm-rpc-rust.git # Download this starter project
cd evm-rpc-rust # Navigate to the project directory
dfx start --clean --background # Run dfx in the background
npm install # Install project dependencies
npm run setup # Install packages, deploy canisters, and generate type bindings

npm start # Start the development server

๐Ÿš€ Develop

The frontend will update automatically as you save changes. For the backend, run dfx deploy backend to redeploy. To redeploy all canisters (front- and backend), run dfx deploy.

When ready, run dfx deploy --network ic to deploy your application to the ICP mainnet.

๐Ÿ› ๏ธ Technology Stack

  • Vite: high-performance tooling for front-end web development
  • React: a component-based UI library
  • TypeScript: JavaScript extended with syntax for types
  • Sass: an extended syntax for CSS stylesheets
  • Prettier: code formatting for a wide range of supported languages
  • Rust CDK: the Canister Development Kit for Rust
  • EVM RPC canister: call Ethereum RPC methods from the Internet Computer

๐Ÿ“š Documentation

๐Ÿ’ก Tips and Tricks

  • If the links printed by dfx do not work in Codespaces, run ./canister_urls.py and click the links shown there.
  • If you get an error The wasm of 7hfb6-caaaa-aaaar-qadga-cai in pulled cache ... run rm -rf ~/.cache/dfinity/pulled/7hfb6-caaaa-aaaar-qadga-cai
  • Customize your project's code style by editing the .prettierrc file and then running npm run format.
  • Split your frontend and backend console output by running npm run frontend and npm run backend in separate terminals.

evm-rpc-rust's People

Contributors

rvanasa avatar fxgst avatar krpeacock avatar zenvoich 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.