Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harmoniousmoss/baseactixauthmongo
Basic Actix Web (Rust) With MongoDB Auth
https://github.com/harmoniousmoss/baseactixauthmongo
Last synced: about 2 months ago
JSON representation
Basic Actix Web (Rust) With MongoDB Auth
- Host: GitHub
- URL: https://github.com/harmoniousmoss/baseactixauthmongo
- Owner: harmoniousmoss
- Created: 2024-08-11T01:31:22.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T04:41:18.000Z (5 months ago)
- Last Synced: 2024-08-21T05:47:07.045Z (5 months ago)
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Actix Web + MongoDB Authentication Example
This repository is an example of an endpoint built with Actix Web (Rust) and MongoDB, demonstrating user authentication and admin seeding. The project includes JWT authentication middleware, MongoDB connection handling, and routes for user signup and signin.
## Features:
- MongoDB Integration
- JWT Authentication Middleware
- Admin Seeding
- User Authentication
- Customizable Routes: Easily configurable routes for various HTTP methods.
- Environment Configuration: Use .env to configure MongoDB URI and port settings.## Routes:
- GET /: Greet endpoint to confirm the server is running.
- POST /signup: Create a new user.
- POST /signin: Authenticate a user and return a JWT token.