sniperliu / actix-login-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actix-login-demo

A learning project to use Rust/Actix/Diesel/Yew to build a simple user registration/login web app.

Play

cargo make

cargo run -p backend

cargo +nightly install miniserve

miniserve ./frontend/static -p 8081 --index index.html

docker-compose up
docker-compose up --build

Backend Features

  • Users API CRD
  • Server side input validation
  • Enable https
  • Password hashing
  • Middleware to guard OWASP top vulnerabilites
  • Login through 3rd party OAuth provider, e.g. github
  • Serving static file generated by Yew
  • Dockerfile

Frontend Features

  • Registration Page
  • Login Page
  • Hello Page with need Authentication

Reference

  1. https://erwabook.com/intro/create-a-browser-based-frontend-ui.html

About


Languages

Language:Rust 89.5%Language:Dockerfile 8.0%Language:HTML 2.1%Language:Shell 0.4%