{"id":15132519,"url":"https://github.com/jun-labs/lua-script","last_synced_at":"2026-02-08T10:33:31.070Z","repository":{"id":256220491,"uuid":"854517819","full_name":"jun-labs/lua-script","owner":"jun-labs","description":"🔵 Learning lua-script.","archived":false,"fork":false,"pushed_at":"2024-09-20T10:41:25.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T00:36:59.496Z","etag":null,"topics":["busted","lua","lua-script","luaunit","redis","script"],"latest_commit_sha":null,"homepage":"","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/jun-labs.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-09-09T10:15:21.000Z","updated_at":"2024-11-10T20:14:16.000Z","dependencies_parsed_at":"2024-10-31T12:53:33.467Z","dependency_job_id":null,"html_url":"https://github.com/jun-labs/lua-script","commit_stats":null,"previous_names":["jun-labs/lua-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jun-labs/lua-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun-labs%2Flua-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun-labs%2Flua-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun-labs%2Flua-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun-labs%2Flua-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jun-labs","download_url":"https://codeload.github.com/jun-labs/lua-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jun-labs%2Flua-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29227748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T09:43:19.170Z","status":"ssl_error","status_checked_at":"2026-02-08T09:42:55.556Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["busted","lua","lua-script","luaunit","redis","script"],"created_at":"2024-09-26T04:20:24.822Z","updated_at":"2026-02-08T10:33:31.054Z","avatar_url":"https://github.com/jun-labs.png","language":"Lua","readme":"\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"./images/lua.png\" width=\"150\" height=\"150\" alt=\"Lua Image\"\u003e\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nLearning Lua\n\n[![Release](https://img.shields.io/badge/-🔵_Lua-blue)](https://www.lua.org/) [![Release](https://img.shields.io/badge/-📚_Documentation-brightgreen)](https://www.lua.org/docs.html) \u003cbr/\u003e\n[![Release](https://img.shields.io/badge/🎉_Busted-lightblue)](https://github.com/lunarmodules/busted)\n[![Release](https://img.shields.io/badge/%E2%9C%A8%20LuaUnit-yellow)](https://www.tutorialspoint.com/lua/index.htm) [![Release](https://img.shields.io/badge/📌_Lua_Style_Guide-gray)](https://github.com/luarocks/lua-style-guide) \u003cbr/\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n# Install\n\nBefore learning Lua, please make sure to correctly install the following modules. (For Mac with AMD chip)\n\n```shell\n$ brew install lua                 # Lua\n$ brew install luajit              # LuaJit\n$ brew install luarocks            # LuaRocks\n$ luarocks install luaunit         # LuaUnit\n$ luarocks install busted          # Busted\n$ luarocks install redis-lua       # Redis Lua\n```\n\n\u003cbr/\u003e\u003cbr/\u003e\n\nIf you want to know information about a package, you can run the following command.\n\n```shell\n$ luarocks show luaunit\nLuaUnit 3.4-1 - A unit testing framework for Lua\n...\nInstalled in:   /opt/homebrew\n\nModules:\n        luaunit (/opt/homebrew/share/lua/5.4/luaunit.lua)\nexport LUA_PATH=\"/opt/homebrew/share/lua/5.4/?.lua;;\"\n```\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n# Run\n\nTo run the Lua script, navigate to the folder where your file is located and execute the following command.\n\n```shell\n$ pwd                                   # 1. Current directory\n/lua-script/basic\n\n$ ls                                    # 2. Check directories\nchunk    string_library\n\n$ cd string_library                     # 3. Navigate to target directory\n\n$ lua main.lua                          # 4. Execute lua\n```\n\n\u003cbr/\u003e\u003cbr/\u003e\n\nTo run the tests, navigate to the folder where your test file is located and execute the following command.\n\n```shell\n$ pwd                                   # 1. Current directory\n/lua-script/basic\n\n$ ls                                    # 2. Check directories\nchunk    string_library\n\n$ cd string_library                     # 3. Navigate to target directory\n\n$ lua test_luaunit.lua                  # 4. Execute test(luaunit)\n......\nRan 6 tests in 0.000 seconds, \n6 successes, 0 failures OK\n```\n\n```shell\n$ pwd                                   # 1. Current directory\n/lua-script/basic\n\n$ ls                                    # 2. Check directories\nchunk    string_library\n\n$ cd string_library                     # 3. Navigate to target directory\n\n$ busted test_busted.lua                # 4. Execute test(busted)\n●●●●●●●●●●●\n11 successes / 0 failures / 0 errors / 0 pending : 0.005014 seconds\n```\n\n\u003cbr/\u003e\u003cbr/\u003e\n\nIf your test uses Redis, please execute the following Docker Compose command before running the program, and ensure that the required port 6379 is not already in use to avoid any conflicts.\n\n```yaml\nversion: \"3.8\"\nservices:\n  redis:\n    image: redis:latest\n    ports:\n      - \"6379:6379\"\n```\n\n```shell\n$ docker-compose up -d\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjun-labs%2Flua-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjun-labs%2Flua-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjun-labs%2Flua-script/lists"}