├── .env.example ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── migrations ├── 20240902034746_users.down.sql └── 20240902034746_users.up.sql ├── postman_collection.json └── src ├── config.rs ├── db.rs ├── dtos.rs ├── error.rs ├── handler ├── auth.rs ├── mod.rs └── users.rs ├── mail ├── mails.rs ├── mod.rs ├── sendmail.rs └── templates │ ├── RestPassword-email.html │ ├── Verification-email.html │ └── Welcome-email.html ├── main.rs ├── middleware.rs ├── models.rs ├── routes.rs └── utils ├── mod.rs ├── password.rs └── token.rs /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | .env -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/README.md -------------------------------------------------------------------------------- /migrations/20240902034746_users.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/migrations/20240902034746_users.down.sql -------------------------------------------------------------------------------- /migrations/20240902034746_users.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/migrations/20240902034746_users.up.sql -------------------------------------------------------------------------------- /postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/postman_collection.json -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/config.rs -------------------------------------------------------------------------------- /src/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/db.rs -------------------------------------------------------------------------------- /src/dtos.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/dtos.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/handler/auth.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/handler/auth.rs -------------------------------------------------------------------------------- /src/handler/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/handler/mod.rs -------------------------------------------------------------------------------- /src/handler/users.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/handler/users.rs -------------------------------------------------------------------------------- /src/mail/mails.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/mail/mails.rs -------------------------------------------------------------------------------- /src/mail/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/mail/mod.rs -------------------------------------------------------------------------------- /src/mail/sendmail.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/mail/sendmail.rs -------------------------------------------------------------------------------- /src/mail/templates/RestPassword-email.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/mail/templates/RestPassword-email.html -------------------------------------------------------------------------------- /src/mail/templates/Verification-email.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/mail/templates/Verification-email.html -------------------------------------------------------------------------------- /src/mail/templates/Welcome-email.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/mail/templates/Welcome-email.html -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/middleware.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/middleware.rs -------------------------------------------------------------------------------- /src/models.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/models.rs -------------------------------------------------------------------------------- /src/routes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/routes.rs -------------------------------------------------------------------------------- /src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/utils/mod.rs -------------------------------------------------------------------------------- /src/utils/password.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/utils/password.rs -------------------------------------------------------------------------------- /src/utils/token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarambh-darshan/rust-backend-axum/HEAD/src/utils/token.rs --------------------------------------------------------------------------------