{"id":18446392,"url":"https://github.com/fedox-die-ente/gmsv_mongo","last_synced_at":"2025-04-08T00:31:49.393Z","repository":{"id":243135072,"uuid":"805345907","full_name":"Fedox-die-Ente/gmsv_mongo","owner":"Fedox-die-Ente","description":"The gmsv_mongo module enables the usage of MongoDB connections within Garry's Mod (GMod) via Rust. This opens up diverse possibilities for database interactions and management within GMod servers.","archived":false,"fork":false,"pushed_at":"2025-01-26T13:43:15.000Z","size":98,"stargazers_count":13,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T03:08:48.032Z","etag":null,"topics":["binary","database","dll","garrysmod","gmod","mongodb","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fedox-die-Ente.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-24T11:37:19.000Z","updated_at":"2025-01-07T21:05:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"858ec460-7529-4e1b-9292-bd1d636a3896","html_url":"https://github.com/Fedox-die-Ente/gmsv_mongo","commit_stats":null,"previous_names":["fedox-die-ente/gmsv_mongo"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedox-die-Ente%2Fgmsv_mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedox-die-Ente%2Fgmsv_mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedox-die-Ente%2Fgmsv_mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedox-die-Ente%2Fgmsv_mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fedox-die-Ente","download_url":"https://codeload.github.com/Fedox-die-Ente/gmsv_mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755385,"owners_count":20990616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary","database","dll","garrysmod","gmod","mongodb","rust"],"created_at":"2024-11-06T07:09:11.232Z","updated_at":"2025-04-08T00:31:49.386Z","avatar_url":"https://github.com/Fedox-die-Ente.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" id=\"title\"\u003egmsv_mongo\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://socialify.git.ci/Fedox-die-Ente/gmsv_mongo/image?font=Jost\u0026issues=1\u0026language=1\u0026name=1\u0026owner=1\u0026pattern=Floating%20Cogs\u0026pulls=1\u0026stargazers=1\u0026theme=Dark\" alt=\"project-image\"\u003e\u003c/p\u003e\n\u003cp id=\"description\"\u003eThe gmsv_mongo module enables the usage of MongoDB connections within Garry's Mod (GMod) via Rust. This opens up diverse possibilities for database interactions and management within GMod servers.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-green\" alt=\"shields\"\u003e   \u003cimg src=\"https://img.shields.io/github/release/Fedox-die-Ente/gmsv_mongo?include_prereleases=\u0026amp;sort=semver\u0026amp;color=green\" alt=\"shields\"\u003e\u003c/p\u003e\n\n\u003ch2\u003e🛠️ Installation Steps:\u003c/h2\u003e\n\n\u003cp\u003e1. Download the correct file for your server operating system. You can execute the following console command to get the correct version.\u003c/p\u003e\n\n```\nlua_run print(jit.os, jit.arch)\n```\n\n\u003cp\u003e2. Put the file in your \u003cb\u003egarrysmod/lua/bin\u003c/b\u003e folder if it doesn't exists just create one.\u003c/p\u003e\n\n\u003cp\u003e3. Include the module in your code.\u003c/p\u003e\n\n```\nrequire('mongo');\n```\n\n\u003ch2\u003e💻 Built with\u003c/h2\u003e\n\nTechnologies used in the project:\n\n* [Rust](https://www.rust.de/startseite)\n* [rglua](https://github.com/Vurv78/rglua)\n* [mongodb](https://github.com/mongodb/mongo-rust-driver)\n* [tokio](https://docs.rs/tokio/1.37.0/tokio/index.html)\n* [serde](https://docs.rs/serde/latest/serde/)\n* [dotenv](https://docs.rs/dotenv/0.15.0/dotenv/)\n* [log](https://docs.rs/log/0.4.21/log/)\n* [termcolor](https://docs.rs/termcolor/1.4.1/termcolor/)\n* [futures](https://docs.rs/futures/0.3.30/futures/)\n\n\u003ch2\u003e🔨 Build project\u003c/h2\u003e\n\nTo build the sample project in debug mode, you need to specify the target architecture for your build.\n\n| Platform  |                     Command                     |                                                          Description                                                           |\n|:---------:|:-----------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------:|\n|  `win32`  |   `cargo build --target i686-pc-windows-msvc`   | Windows 32-bit\u003cbr\u003eUse this if your server is running Windows on the `main` branch of Garry's Mod (this is the default branch). |\n|  `win64`  |  `cargo build --target x86_64-pc-windows-msvc`  |              Windows 64-bit\u003cbr\u003eUse this if your server is running Windows on the `x86-64` branch of Garry's Mod.               |\n|  `linux`  |  `cargo build --target i686-unknown-linux-gnu`  |   Linux 32-bit\u003cbr\u003eUse this if your server is running Linux on the `main` branch of Garry's Mod (this is the default branch).   |\n| `linux64` | `cargo build --target x86_64-unknown-linux-gnu` |                Linux 64-bit\u003cbr\u003eUse this if your server is running Linux on the `x86-64` branch of Garry's Mod.                 |\n\nIf Rust reports it cannot find the target/toolchain, you may need to install it. By default, Rust installs the native\ntoolchain for your system, which is likely Windows 64-bit (`x86_64-pc-windows-msvc`).\n\nCross-compiling Linux binaries on Windows is not recommended. For compiling Linux binaries on Windows, use WSL.\n\n### Using the Sample in Garry's Mod\n\nFirst, rename the compiled binary to `gmsv_mongo_PLATFORM.dll`, where `PLATFORM` corresponds to one of the following:\n\n| Platform  |                                                          Description                                                           |\n|:---------:|:------------------------------------------------------------------------------------------------------------------------------:|\n|  `win32`  | Windows 32-bit\u003cbr\u003eUse this if your server is running Windows on the `main` branch of Garry's Mod (this is the default branch). |\n|  `win64`  |              Windows 64-bit\u003cbr\u003eUse this if your server is running Windows on the `x86-64` branch of Garry's Mod.               |\n|  `linux`  |   Linux 32-bit\u003cbr\u003eUse this if your server is running Linux on the `main` branch of Garry's Mod (this is the default branch).   |\n| `linux64` |                Linux 64-bit\u003cbr\u003eUse this if your server is running Linux on the `x86-64` branch of Garry's Mod.                 |\n\nNext, move the renamed binary to `garrysmod/lua/bin/` on your server. If the `bin` folder does not exist, create it.\n\nFinally, you can load the module from Lua with:\n\n```lua\nrequire(\"mongo\")\n```\n\n\u003ch2\u003e🧑‍💻 Examples\u003c/h2\u003e\n\nFor some examples on how to use the module, check out the [examples](https://github.com/Fedox-die-Ente/gmsv_mongo/tree/master/examples) folder. \n\n\u003ch2\u003e🛡️ License:\u003c/h2\u003e\n\nThis project is licensed under the [AGPL-3.0](LICENSE)\n\n\u003ch2\u003e💖Like my work?\u003c/h2\u003e\n\nLeave a ⭐ on this repository :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedox-die-ente%2Fgmsv_mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedox-die-ente%2Fgmsv_mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedox-die-ente%2Fgmsv_mongo/lists"}