https://github.com/janrockdev/mongodb-rust
Simple prototype for MongoDB CRUD in Rust.
https://github.com/janrockdev/mongodb-rust
Last synced: over 1 year ago
JSON representation
Simple prototype for MongoDB CRUD in Rust.
- Host: GitHub
- URL: https://github.com/janrockdev/mongodb-rust
- Owner: janrockdev
- Created: 2024-04-08T22:21:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T22:24:01.000Z (about 2 years ago)
- Last Synced: 2025-01-24T19:35:01.560Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MongoDB-Rust
Simple prototype for MongoDB CRUD in Rust.
### Environment Variables
```shell
export MONGODB_URL="mongodb+srv://:@/?retryWrites=true&w=majority&appName=Cluster0"
export MONGODB_DATABASE=""
export MONGODB_COLLECTION="users"
```
### Build
```
cargo build --release
```
### Run
```
./user-app create "user1@foo.com"
./user-app list all
./user-app list disabled
./user-app update 63b5648cbd0aa2dad409a3d7 disabled
```
### Source
```
#Authentication
https://www.mongodb.com/docs/drivers/rust/current/fundamentals/authentication/
```