{"id":15175286,"url":"https://github.com/thoughtscript/rust_go_fun_2024","last_synced_at":"2026-02-28T12:08:01.560Z","repository":{"id":238734941,"uuid":"795751484","full_name":"Thoughtscript/rust_go_fun_2024","owner":"Thoughtscript","description":"Fun with Rust, Go, and MongoDB","archived":false,"fork":false,"pushed_at":"2024-12-29T23:20:31.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T18:13:59.118Z","etag":null,"topics":["docker","docker-compose","golang","mongo","rust"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thoughtscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04T00:46:56.000Z","updated_at":"2024-12-31T12:45:08.000Z","dependencies_parsed_at":"2024-12-30T00:18:58.661Z","dependency_job_id":"1a03e1e5-be4f-46a6-ba9f-59a37d31aefe","html_url":"https://github.com/Thoughtscript/rust_go_fun_2024","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"74edbbb35f0727e407fc4e66da20372c715ffd91"},"previous_names":["thoughtscript/rust_go_fun_2024"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frust_go_fun_2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frust_go_fun_2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frust_go_fun_2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frust_go_fun_2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/rust_go_fun_2024/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240063929,"owners_count":19742227,"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":["docker","docker-compose","golang","mongo","rust"],"created_at":"2024-09-27T12:21:25.682Z","updated_at":"2026-02-28T12:08:01.553Z","avatar_url":"https://github.com/Thoughtscript.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust_go_fun\n\n[![](https://img.shields.io/badge/Go-1.24.0-blue.svg)](https://golang.org/pkg/)\n[![](https://img.shields.io/badge/Rust-2021-brown.svg)](https://doc.rust-lang.org/cargo/reference/manifest.html)\n[![](https://img.shields.io/badge/Mongo-db-green.svg)](https://www.mongodb.com/)\n\nRun the following from the root dir:\n\n```bash\ndocker-compose up\n\n# If using Docker Compose Engine V2:\ndocker compose up\n```\n\nEndpoint testing is supplied through `bash`:\n\n```bash\nbash curl_test_go_mongo.sh\nbash curl_test_rust_actix.sh\nbash curl_test_rust_mongo.sh\nbash curl_test_workers.sh\n# bash curl_test_all.sh\n```\n\n## Go\n\n1. https://localhost:443/public/\n1. https://localhost:443/public/queryworker.html\n1. https://localhost:443/public/querystatus.html\n1. https://localhost:443/public/querystatuses.html\n1. https://localhost:443/public/addworker.html\n1. https://localhost:443/public/stopworker.html\n\nDefaults:\n\n* User and password for basic auth: `test`, `test`\n* `a` and `b` are commands that are supplied in the request - they correspond to the bash scripts in [/go/bin](/go/bin)\n* Simple password auth isn't enterprise-grade security (obviously) but is added to demonstrate basic auth checking\n\n### Worker\n\n1. `POST` https://localhost:443/api/create?user=test\u0026password=test\u0026cmd=a\u0026scheduled=2024-05-08T15:04:05Z\n1. `GET` https://localhost:443/api/status?user=test\u0026password=test\u0026uuid=5e44e582-7af4-4751-9dd8-9385c25e1e99\n1. `GET` https://localhost:443/api/workers?user=test\u0026password=test\n1. `GET` https://localhost:443/api/jobs?user=test\u0026password=test\u0026uuid=5e44e582-7af4-4751-9dd8-9385c25e1e99\n1. ` POST` https://localhost:443/api/stop?user=test\u0026password=test\u0026uuid=5e44e582-7af4-4751-9dd8-9385c25e1e99\n\n### Example\n\nMongo DB:\n\n1. `GET` https://localhost:443/api/examples\n1. `GET` https://localhost:443/api/example/one?id=1\n1. `DELETE` https://localhost:443/api/example/delete?id=1\n1. `POST` https://localhost:443/api/example/create?id=1\u0026name=a\u0026val=a\n1. `PUT` https://localhost:443/api/example/update?id=1\u0026name=c\u0026val=c\n\n## Rust\n\nWorking my way through some Rust and Actix Server documentation.\n\n1. http://localhost:8000/\n1. http://localhost:8000/echo\n1. http://localhost:8000/hey\n\n### Example\n\n1. `GET` http://localhost:8000/examples\n1. `GET` http://localhost:8000/example/one?id=1\n1. `DELETE` http://localhost:8000/example/delete?id=1\n1. `POST` http://localhost:8000/example/create?id=1\u0026name=a\u0026val=a\n1. `PUT` http://localhost:8000/example/update?id=1\u0026name=c\u0026val=c\n\n## Resources and Links\n\n1. https://doc.rust-lang.org/rust-by-example/index.html\n2. https://ntex.rs/docs/application\n3. https://hub.qovery.com/guides/tutorial/create-a-blazingly-fast-api-in-rust-part-1/#overview\n4. https://actix.rs/docs/getting-started\n5. https://github.com/tfogo/mongodb-go-tutorial/blob/master/main.go\n6. https://pkg.go.dev/net/url#URL.Query\n7. https://stackoverflow.com/questions/55564562/what-is-the-bson-syntax-for-set-in-updateone-for-the-official-mongo-go-driver\n8. https://github.com/Mr-Malomz/actix-mongo-api/blob/main/src/repository/mongodb_repo.rs\n9. https://crates.io/crates/mongodb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Frust_go_fun_2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Frust_go_fun_2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Frust_go_fun_2024/lists"}