1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/simple-auth-server
2019-03-29 13:43:03 -07:00
..
migrations simple-auth-server added to examples (#65) 2018-12-09 18:55:36 +03:00
src update deps 2019-03-29 13:43:03 -07:00
static simple-auth-server added to examples (#65) 2018-12-09 18:55:36 +03:00
Cargo.toml update deps 2019-03-29 13:43:03 -07:00
diesel.toml simple-auth-server added to examples (#65) 2018-12-09 18:55:36 +03:00
README.md Update README.md 2019-02-03 22:06:29 +03:00

Flow of the event would look like this:
  • Registers with email address ➡ Receive an 📨 with a link to verify
  • Follow the link ➡ register with same email and a password
  • Login with email and password ➡ Get verified and receive jwt token
Crates we are going to use
  • actix // Actix is a Rust actors framework.
  • actix-web // Actix web is a simple, pragmatic and extremely fast web framework for Rust.
  • bcrypt // Easily hash and verify passwords using bcrypt.
  • chrono // Date and time library for Rust.
  • diesel // A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL.
  • dotenv // A dotenv implementation for Rust.
  • env_logger // A logging implementation for log which is configured via an environment variable.
  • failure // Experimental error handling abstraction.
  • jsonwebtoken // Create and parse JWT in a strongly typed way.
  • futures // An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces.
  • r2d2 // A generic connection pool.
  • serde // A generic serialization/deserialization framework.
  • serde_json // A JSON serialization file format.
  • serde_derive // Macros 1.1 implementation of #[derive(Serialize, Deserialize)].
  • sparkpost // Rust bindings for sparkpost email api v1.
  • uuid // A library to generate and parse UUIDs.

Read the full tutorial series on hgill.io