| Crates.io | mongo_service |
| lib.rs | mongo_service |
| version | 0.3.1 |
| created_at | 2020-11-12 04:07:09.877569+00 |
| updated_at | 2020-11-22 03:12:25.171118+00 |
| description | General CRUD RESTful APIs for MongoDB. |
| homepage | |
| repository | https://github.com/J-F-Liu/mongo_service.git |
| max_upload_size | |
| id | 311470 |
| size | 72,732 |
General CRUD RESTful APIs for MongoDB.
use mongodb::Client;
let client = Client::with_uri_str("mongodb://localhost:27017").await?;
let mut app = tide::new();
app.at("/api").nest(mongo_service::serve(client.database("database")));
app.listen("127.0.0.1:8080").await?;