A simple frontend web app in the seed.rs Rust framework.

Overview

Seed Quickstart

Basic Rust-only template for your new Seed app.

1. Create a new project

  1. You can use cargo generate to use this template.

    $ cargo generate --git https://github.com/seed-rs/seed-quickstart.git --name my-project
    $ cd my-project
  2. Alternatively, simply click on the green button Use this template on the GitHub profile of this quickstart.

  3. Make sure Git doesn't automatically convert your newlines to CRLF because linters don't like it.

    • Run $ git config --global core.autocrlf in your terminal and it should return input or false. See Git docs for more info.
  4. Clone your new repository to your local machine. I use GitKraken, but you are probably a better developer than me - use your favorite terminal.

2. Install / check required tools

  1. Make sure you have basic tools installed:

  2. Platform-specific tools like ssl and pkg-config:

    • Follow recommendations in build errors (during the next chapter).
    • Note: Don't hesitate to write notes or a tutorial for your platform and create a PR .

3. Prepare your project for work

  1. Open the project in your favorite IDE (I recommend VS Code + Rust Analyzer).
  2. Open a new terminal tab / window and run: cargo make serve
  3. Open a second terminal tab and run: cargo make watch
  4. If you see errors, try to fix them or write on our chat or forum.
  5. Modify files like README.md and Cargo.toml as you wish.

4. Write your website

  1. Open localhost:8000 in a browser (I recommend Firefox and Chrome).
  2. Modify source files (e.g. /src/lib.rs or /index.html).
  3. Watch compilation in the terminal tab where you run cargo make watch.
  4. You can watch dev-server responses in the tab where you run cargo make serve.
  5. Refresh your browser and see changes.
  6. Go to step 2.

5. Prepare your project for deploy

  1. Run cargo make verify in your terminal to format and lint the code.
  2. Run cargo make build_release.
  3. Upload index.html and pkg into your server's public folder.
    • Don't forget to upload also configuration files for your hosting, see the Netlify one below.
# netlify.toml
[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

Other Seed quickstarts and projects


!!! New Rust-only quickstart in development! => Seeder !!!


You might also like...
NFT & Marketplace Contracts with royalties and fungible token support. Sample React app included.
NFT & Marketplace Contracts with royalties and fungible token support. Sample React app included.

NFT Market Reference Implementation A PoC backbone for NFT Marketplaces on NEAR Protocol. Reference Changelog Changelog Progress: basic purchase of NF

All the data an IC app needs to make seamless experiences, accessible directly on the IC. DAB is an open internet service for NFT, Token, Canister, and Dapp registries.
All the data an IC app needs to make seamless experiences, accessible directly on the IC. DAB is an open internet service for NFT, Token, Canister, and Dapp registries.

DAB 👀 Overview An Internet Computer open internet service for data. All the data an IC app needs to make a seamless experience, accessible directly o

Flashcards: A spaced repetition app designed around org files.

Flashcards Since it's easy to create notes in org-mode and difficult to create flashcards, this app tries to ease the process of making cards! For you

MyCitadel Wallet app for Linux, Windows & MacOS desktop made with GTK+
MyCitadel Wallet app for Linux, Windows & MacOS desktop made with GTK+

MyCitadel Desktop Bitcoin, Lightning and RGB wallet MyCitadel is a wallet for bitcoin, digital assets and bitcoin finance (#BiFi) smart contracts. It

This program patches the WeMod app to think you're a pro subscriber
This program patches the WeMod app to think you're a pro subscriber

WeMod Pro Unlocker This program patches the WeMod app to think you're a pro subscriber. ⚠️ DISCLAIMER: Eventhough I don't think it is likely, WeMod co

The backend for the Cougar Scouting App for 1403 FRC team.
The backend for the Cougar Scouting App for 1403 FRC team.

Welcome to Cougar Scouting App Backend! Before you use any code in this repo Please credit us in your repo and credits in your app This code is a work

Sample lightning node command-line app built on top of Ldk Node (similar to ldk-sample).

ldk-node-sample Sample lightning node command-line app built on top of Ldk Node (similar to ldk-sample ). Installation git clone https://github.com/op

Implementation of the Web Cryptography specification in Rust.

[wip] webcrypto Implementation of the Web Cryptography specification in Rust. This crate hopes to ease interoperability between WASM and native target

A blazingly fast, ShareX uploader coded in Rust (using actix web) which utilizes AES-256-GCM-SIV to securely store uploaded content.

Magnesium Oxide ❔ What is this? Magnesium-Oxide (MGO) is a secure file uploader with support for ShareX. 🌠 Features 🔥 Blazingly fast uploads and enc

Owner
Rust developer.
null
An API and test-app that exposes zcash functionality for app consumption

Zingolib This repo provides both a library for zingoproxyclient and zingo-mobile, as well as an included cli application to interact with zcashd via l

ZingoLabs 5 Dec 15, 2022
Web App for exploring Substrate-based Chains using Subxt

Subxt Explorer Check it out at https://paritytech.github.io/subxt-explorer/. An SPA for exploring metadata of substrate based blockchains in the Brows

Parity Technologies 5 Oct 30, 2023
Summer Boot (web2&web3, the decentralized web framework)

Summer Boot The next generation decentralized web framework allows users to manage and share their own data. It will be a wide area and cross regional

Summer 111 Dec 1, 2022
Glommio Messaging Framework (GMF) is a high-performance RPC system designed to work with the Glommio framework.

Glommio Messaging Framework (GMF) The GMF library is a powerful and innovative framework developed for facilitating Remote Procedure Calls (RPCs) in R

Mohsen Zainalpour 29 Jun 13, 2023
Simple PoC to issue JSON Web Tokens (JWTs) with a canister on the Internet Computer.

JWT Issuer Proof of Concept Overview Simple PoC to issue JSON Web Tokens (JWTs) with a canister on the Internet Computer. It allows the issuance of tw

Dominic Wörner 7 Oct 13, 2022
Enigma Core library. The domain: Trusted and Untrusted App in Rust.

Enigma Core library Service Master Develop CI Badge Pure Rust Enclave && Untrusted in Rust. Core is part of the Enigma node software stack. The Core c

SCRT Labs 89 Sep 14, 2022
A demo app covering building an eBPF load-balancer in Rust

eBPF Rust UDP LoadBalancer Demo This is an example of creating a UDP load-balancer in Rust as an eXpress Data Path (XDP) type eBPF program using the a

Shane Utt 17 Jan 5, 2023
Notabena, the pure Rust open-source note-taking app.

Notabena About Notabena is the free and open source note-taking app, written in pure Rust. Features These are our current planned features. (Most feat

Mart Zielman 7 Jun 22, 2023
The Mullvad VPN client app for desktop and mobile

Mullvad VPN desktop and mobile app Welcome to the Mullvad VPN client app. This repository contains all the source code for the desktop and mobile vers

Mullvad VPN 3k Jan 2, 2023
Trustworthy encrypted command line authenticator app compatible with multiple backups.

cotp - command line totp authenticator I believe that security is of paramount importance, especially in this digital world. I created cotp because I

Reply 71 Dec 30, 2022