Giter Site home page Giter Site logo

b3hr4d / ic-rust-nextjs Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 794 KB

A starter template for building decentralized applications on the Internet Computer using Next.js and Rust. Features a Rust backend for canister logic and a Next.js frontend for user interaction. Comes with comprehensive documentation for easy setup and deployment.

License: MIT License

Rust 2.15% JavaScript 27.46% CSS 16.54% Shell 20.98% TypeScript 32.87%
dfinity dfinity-nextjs icp internet-computer nextjs rust starter-template template

ic-rust-nextjs's Introduction

InternetComputer - Rust + Next.js Template

This is a template for creating a Next.js app with a Rust backend that can be deployed to the Internet Computer.

Alt text

Getting Started

  1. Install the DFINITY Canister SDK
  2. Install Node.js
  3. Install Rust

Running Locally

Installing dependencies:

  1. Run yarn install or npm install it will run the following commands:

    Install Node.js dependencies:

  • Run yarn install or npm install

    For extract candid definition from canister WASM:

  • Run yarn candid:install or npm run candid:install

    For transforming Wasm canisters running on the Internet Computer:

  • Run yarn wasm:install or npm run wasm:install

Running Local Internet Computer:

  1. Run yarn dfx:start or npm run dfx:start

Deploying to the Local Internet Computer:

  1. Run yarn deploy or npm run deploy

Running Next.js app:

  1. Run yarn dev or npm run dev
  2. Open http://localhost:3000 in your browser

Deploying to the Internet Computer

  1. Run yarn deploy --network=ic to deploy the canisters to the Internet Computer

Notes

  • The Rust code is located in the backend directory
  • The Next.js code is located in the src directory
  • The canister configuration is located in the dfx.json file

Other Branches

  • Motoko + Next.js Template: motoko

motoko

motoko_todo

  • RadixUI + Rust + Next.js Template: radix-ui

radix-ui

stable_memory

Resources

ic-rust-nextjs's People

Contributors

b3hr4d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.