Giter VIP home page Giter VIP logo

wpcodevo / rust-yew-rs256-web-app Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 27 KB

In this article, you will learn how to build a modern, single-page frontend application in Rust using the Yew.rs framework and WebAssembly.

Home Page: https://codevoweb.com/rust-yew-frontend-jwt-access-and-refresh-tokens/

Makefile 0.99% HTML 0.99% JavaScript 1.86% Rust 95.63% CSS 0.53%
authentication jwt jwt-authentication rust tailwindcss trunk webassembly yew yew-framework yew-router

rust-yew-rs256-web-app's Introduction

Rust and Yew.rs Frontend: JWT Access and Refresh Tokens

In this article, you will learn how to build a modern, single-page frontend application in Rust using the Yew.rs framework and WebAssembly. Our app will include essential JWT authentication features such as user registration, login, logout, restrict access to protected pages, and the ability to refresh access tokens in the background when they expire.

Rust and Yew.rs Frontend: JWT Access and Refresh Tokens

Topics Covered

  • Run the Yew.rs Frontend App Locally
  • Run the Frontend App with a Backend API
  • Bootstrap the Yew.rs Project
  • Setup Tailwind CSS
  • Define the API Request Functions
    • API Response Types
    • Create the API Requests
  • State Management with the Yewdux Library
  • Create Reusable Yew.rs Components
    • Create a Spinner Component
    • Create a Loading Button Component
    • Create a Notification Toast Component
    • Create a Form Input Component
    • Create a Header Component
    • Export the Components
  • Implement the Authentication Flow
    • Account Registration Component
    • Account Login Component
    • Add Logout Logic to the Header Component
  • Create the Remaining Page Components
    • Home Page
    • Profile Page
    • Export the Page Components
  • Setup Routes For the Yew Components
  • Render the Yew Application in the Main File
  • Test the RS256 JWT Yew.rs Frontend App
    • Home Page
    • Create a New Account
    • Sign Into the Yew App
    • View Account Credentials

Read the entire article here: https://codevoweb.com/rust-yew-frontend-jwt-access-and-refresh-tokens/

rust-yew-rs256-web-app's People

Contributors

wpcodevo avatar

Stargazers

 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.