{"id":22188884,"url":"https://github.com/qwreey/mongodb-for-rblx","last_synced_at":"2025-09-21T00:44:29.484Z","repository":{"id":132465373,"uuid":"597841953","full_name":"qwreey/mongodb-for-rblx","owner":"qwreey","description":"하ㅏㅏㅏ도 ds 오류 많다길래 만들어준 무언가 (잘 쓰이길 바람....)","archived":false,"fork":false,"pushed_at":"2024-02-18T08:22:54.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T20:16:06.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/qwreey.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":"2023-02-05T19:47:42.000Z","updated_at":"2023-05-08T06:59:16.000Z","dependencies_parsed_at":"2024-02-10T07:27:51.795Z","dependency_job_id":"d2d6469d-dd9e-4b91-9662-c57a52828761","html_url":"https://github.com/qwreey/mongodb-for-rblx","commit_stats":null,"previous_names":["qwreey/mongodb-for-rblx"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/qwreey/mongodb-for-rblx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fmongodb-for-rblx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fmongodb-for-rblx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fmongodb-for-rblx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fmongodb-for-rblx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwreey","download_url":"https://codeload.github.com/qwreey/mongodb-for-rblx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fmongodb-for-rblx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276179882,"owners_count":25598571,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-02T11:13:01.893Z","updated_at":"2025-09-21T00:44:29.420Z","avatar_url":"https://github.com/qwreey.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# note\n\n**알아서 하세요 진짜**  \n어려울법 한건 아는데 그만큼 좋은거 쓰고 싶다면 구글에 검색하거나 해서 최대한 알아는 봅시다  \n정ㅇㅇㅇㅇㅇㅇ말 모르겠으면 디스코드로 물어보세요 물어본다면 상황이 어떤지 구체적으로, 스크린샷 등과 함깨 물어보세요  \nhttps://blog.qwreey.kr 에서 저의 디스코드 id 를 얻을 수 있습니다  \n + 가끔 진짜 안된다 안된다 이러는데 아무것도 안보여주면 어떻게 압니까? 가끔 가릴꺼 다 가려놓고 물어본다던가 아니면 아에 정보도 안주고 물어봐서 어이 없던 경험이 많습니다  \n\n*저는 신이 아닙니다 님이 보는 화면을 몰라요*  \n\n# setup\n\n호스팅은 오라클, 혹은 https://ide.goorm.io/ 를 추천합니다  \n오라클은 해외 신용카드를 넣어야 가입이 되므로 불가피하다면 구름ide도 좋습니다  \n오라클은 4코어 24기가 ram 에 200 기가 스토리지가 무료이며  \n구름 ide 는 항상활성화 컨테이너 1코어 1기가 ram 10 기가 스토리지가 무료입니다  \n왠만해서 구름 ide 도 만명정도 데이터는 버틸꺼에요 (다만 동접자가 많으면 힘들어집니다)  \n\n몽고db 랑 node 를 깔아줍니다... 뭐 알아서 될꺼에요 이건  \n```\ncorepack enable\n```\n해서 yarn 켜주시고  \n\n```\ngit clone https://github.com/qwreey75/mongoDB_forRBLX\n```\n해서 리포 받아줍니다  \n```\ncd mongoDB_forRBLX\n```\ncd 해서 터미널에서 잘 들어가 주신 다음  \n```\nyarn\n```\nyarn 으로 디펜던시를 받아줍니다\n\n그다음 받은 폴더 안에 settings.json 파일 하나 만들어서  \n```jsonc\n{\n    // 시크릿 문자. 서버 소통에 쓰이며 랜덤해야합니다\n    // 절대 이 예시의 시크릿을 그대로 사용하지 마시고\n    // 랜덤한 문자를 만들어 사용해 주세요.\n    // 서버통신에서 사용되는 시크릿은 이 값을 시드로\n    // 사용해 계속해서 변화합니다\n    \"secret\": \"XjipTfC.hifmGJhOBvXRtrP4wfh4lA6kWu8h\",\n\n    // 서버가 오픈될 포트입니다. http 사용하려면 80\n    // https 사용하려면 443 해주세요\n    // 서버 성능이 낮다면 http 쓰는게 좋을지도...?\n    \"port\": 19721,\n    \"host\": \"localhost\", // \"0.0.0.0\"\n\n    // 몽고 db url 입니다. 포트를 맞춰주세요\n    // 기본값은 mongodb.sh 파일과 같습니다\n    // 바꾸었다면 mongodb.sh 파일도 열어 바꿔주세요\n    \"mongodbURL\": \"mongodb://localhost:19722\",\n\n    // 사용될 db 명입니다 (use rblxDB)\n    \"dbName\": \"rblxDB\"\n}\n```\n\n저렇게 넣어주시고 (주석은 없어야함)  \ntmux 에서 mongodb.sh 를 실행해줍니다(창 하나 만들어서)  \n\n```\ntmux new -s mongodb\n./mongodb.sh\nESC (쉬고) CTRL+b (쉬고) d\n```\n\n참고 :\n```\ntmux 는 세션을 나가도 프로그램이 계속 실행될 수 있도록 가상창을 만들 수 있게 도와줍니다  \n유지시키고 싶은 프로그램이 있다면  \ntmux new -s 이름  \n다음과 같이 이름을 지정한 창을 만들고  \n프로그램을 실행한 다음  ESC 쉬고 CTRL+b  쉬고 d 를 순차적으로 눌러 나올 수 있습니다 (나오더라도 실행한 프로그램은 계속 실행됨)  \n다시 그 창에 들어가려면 tmux a -t 이름 을 써주면 됩니다. 나가는것은 동일  \ntmux 창에 들어가있다면 바닥에 초록색 라인과 창 이름이 표시됩니다. 생성된 창 바깥과 안을 잘 구분해 주세요  \n```\n\n이제 mongosh 를 사용해줍니다. --port 로 입력한 포트로 열어줍니다\n```\nmongosh --port 19722\n```\n\n열린 창에 test\u003e 가 뜬다면 정상입니다  \nsettings.json 안에 dbName 넣었던걸 아래처럼 입력해줍니다 (기본값이면 그냥 따라 쓰면됨)  \n```\nuse rblxDB\n```\n\n그런다음 컬랙션을 만들어줍니다  \n필요에 따라 컬랙션을 만들어 주시면 됩니다 (예: 유저 데이터, 집 데이터, 등등을 나눠서 카테고리화해서 컬랙션을 만드세요)  \n```\ndb.createCollection(\"players\")\n```\n\n이제 CTRL+C 를 두세번 눌러 나와주세요  \n\n그다음 tmux 창 하나 더 만들어서 node 를 켜줍니다  \n로그를 저장하고 싶으면 node . 뒤에 \u003e 로 출력을 파이핑하세요  \n(예 : node . \u003e ~/rblxdb.log  \n      저장된 로그는 less ~/rblxdb.log 로 볼 수 있습니다)  \n```\ntmux new -s node\nnode .\nESC (쉬고) CTRL+b (쉬고) d\n```\n\n그런다음 이 페이지의 release 부분 찾아 들어가서 rbxmx 받아주시고  \n스튜디오로 드래그 엔 드롭 한 후 ServerStorage 로 옮기고  \nhttp 서비스를 켜주세요  \n~~빌드해준 저가 불신된다면 rojo 로 직접 빌드하시던가요..~~  \n```\n스튜디오 하단 커맨드 입력란에\ngame:GetService(\"HttpService\").HttpEnabled = true\n입력후 엔터\n```\n\n그런다음 이 저장소의 rblx/test.lua 파일을 복사떠 ServerScriptService 에 대충 script 하나 넣고 붙여넣은 뒤,  \nmongodb.new({}) 부분에 설명대로 바꿔주세요  \n```lua\n-- db 연결설정\nlocal db = mongodb.new({\n\t-- http 혹은 https (설정한거 따라서) 넣고 아이피를 넣어주세요\n\t-- 혹은 도메인 설정해서 도메인을 넣어주세요\n\t-- 예 : https://111.111.111.111\n\turl=\"https://111.111.111.111\",\n\t-- 사용한 시크릿 값을 넣어주세요 (settings.json 에 넣었던거와 동일하게)\n\tsecret=\"\",\n\tdebug = true -- 디버그 메시지 표시. 끄면 주황색 통신 내용이 뜨지 않습니다\n})\n```\n\n완료입니다. 저장 후 나갔다 들어올 때 마다 출력창에 숫자가 100 씩 오르는게 보인다면 정상입니다  \n이제 스크립트를 편집해서 알아서 쓰세요  \n\n# Thanks to\n\nsha1 for rblx lua  \nhttps://gist.github.com/Dekkonot/75d939cbc31fb2f278a3d7d55dc78fd7\nused for hasing datas  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwreey%2Fmongodb-for-rblx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwreey%2Fmongodb-for-rblx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwreey%2Fmongodb-for-rblx/lists"}