This Rust project provides a simple authentication system using JSON Web Tokens (JWT) and MongoDB. It includes functionalities for user login, token creation, and token validation.
- Rust installed. (See rustup for installation instructions.)
- MongoDB server.
- dotenv and mongodb Rust crates.
-
Clone the repository:
git clone https://github.com/dogabudak/piarch-a-token-rs.git
-
Build the project:
cargo build
-
Run the application:
cargo run