yew-train-ticket

A Rust WebAssembly Websit example to buy train ticket using yew hooks

yew-train-ticket

A Rust WebAssembly Websit example to buy train ticket using yew hooks.

Snapshot

You can visit in the website online yew-train-ticket

Code example

  • Define Store and Action

  • A simple Function Component using use_context hooks

use_state, use_effect_with_deps, use_reducer_with_init hooks is used in other code.

  • Fetch and Deserialize

Backend

The websit backend is powered by actix-web. actix-train-ticket

web api

  • #404 -- list cities of China
  • http://118.190.37.169:7000/api/search?key=上海 -- list cities of China

How to use it

develop

release

Information - Updated May 20, 2022

Stars: 4
Forks: 0
Issues: 0
Actix

14.1K

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

Rust's premier framework for working with HTTP/1.x HTTP/2 requests. Includes core features like websockets, keep-alives and slow requests handling

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

actix-web-async-graphql-rbatis

Clean boilerplate for graphql services using actix-web, rhai, async-graphql, surf, rbatis, graphql-client, handlebars-rust, jsonwebtoken, and mysql / postgresql

actix-web-async-graphql-rbatis

actix-web-async-graphql-rbatis

Clean boilerplate for graphql services using actix-web, rhai, async-graphql, surf, rbatis, graphql-client, handlebars-rust, jsonwebtoken, and mysql / postgresql

actix-web-async-graphql-rbatis

Actix Web OpenTelemetry

OpenTelemetry integration for actix-web uses

Actix Web OpenTelemetry

actix-web-grants

To check user access to specific services, you can use built-in proc-macro, PermissionGuard or manual

actix-web-grants

rust_actixweb_boilerplate

The Rust Actix_Web Boilerplate is a boilerplate for developers who want to get started with Actix_web's web applications faster

rust_actixweb_boilerplate

actix-web-middleware-keycloak-auth

Actix Web that handles authentication with a JWT emitted by paperclip using the paperclip_compat feature

actix-web-middleware-keycloak-auth

actix-web-validator

This crate is a Rust library for providing validation mechanism to actix-web with Validator crate

actix-web-validator

actix-web-flash-messages

Flash messages for actix-web

actix-web-flash-messages

Actix-web REST API with JWT

env and update the database connection string in DATABASE_URL key

Actix-web REST API with JWT

Run Actix web, Rocket, Warp on AWS Lambda

API Gateway HTTP API with Amazon Linux 2 custom runtime or Docker container image

Run Actix web, Rocket, Warp on AWS Lambda

actix-web static files as resources support

Use-case #1: Static resources folder

actix-web static files as resources support
Facebook Instagram Twitter GitHub Dribbble
Privacy