{"id":26751729,"url":"https://github.com/silverjun/yingyeothon33","last_synced_at":"2025-06-25T19:04:38.949Z","repository":{"id":236457950,"uuid":"792651232","full_name":"SilverJun/Yingyeothon33","owner":"SilverJun","description":"잉여톤 33, 아주 간단한 url redirection 서비스, 근데 이제 bun을 곁들인.","archived":false,"fork":false,"pushed_at":"2024-04-27T08:41:31.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T12:33:52.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/SilverJun.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-04-27T07:08:45.000Z","updated_at":"2024-12-03T06:52:27.000Z","dependencies_parsed_at":"2024-04-27T08:23:26.165Z","dependency_job_id":"3edcb8f2-31a9-4858-94f9-115f0d6c635a","html_url":"https://github.com/SilverJun/Yingyeothon33","commit_stats":null,"previous_names":["silverjun/yingyeothon33"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SilverJun/Yingyeothon33","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilverJun%2FYingyeothon33","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilverJun%2FYingyeothon33/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilverJun%2FYingyeothon33/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilverJun%2FYingyeothon33/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SilverJun","download_url":"https://codeload.github.com/SilverJun/Yingyeothon33/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SilverJun%2FYingyeothon33/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261937042,"owners_count":23232846,"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":[],"created_at":"2025-03-28T12:27:06.530Z","updated_at":"2025-06-25T19:04:38.927Z","avatar_url":"https://github.com/SilverJun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yingyeothon33\n\n잉여톤 33, 아주 간단한 url redirection 서비스, 근데 이제 bun을 곁들인.\n\n# 설치 및 실행\nTo install dependencies:\n\n```bash\nbun install\n```\n\nTo run:\n\n```bash\nbun run index.tsx\n```\n\nTo build executable:\n\n```bash\n# For MacOS ARM Users\nbun build --compile --target=bun-darwin-arm64 ./index.tsx --outfile yyt33\n\n# For Windows x64 Users\nbun build --compile --target=bun-windows-x64 ./index.tsx --outfile yyt33\n\n# For Linux x64 Users\nbun build --compile --target=bun-linux-x64 ./index.tsx --outfile yyt33\n```\n\nThis project was created using `bun init` in bun v1.1.5. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.\n\n# 설명\n\n이 서버는 3가지 path를 제공합니다.\n1. `/`\n    * 이 경로로 접속하면 현재 설정된 url로 바로 리다이렉션 합니다.\n    * 초기 설정 페이지는 https://www.yyt.life 입니다.\n2. `/about`\n    * 이 프로젝트의 about 페이지로 리다이렉션 합니다.\n    * about 페이지는 https://github.com/SilverJun/Yingyeothon33/blob/main/README.md 로 기본 설정되어 있습니다.\n3. `/api`\n    * REST API를 위한 경로입니다.\n\n이 서버는 2개의 설정 값이 존재합니다. 이 설정값은 프로젝트 루트 디렉터리의 settings.json 파일에 있습니다.\n\n```json settings.json\n{\n    \"initialURL\": \"https://www.yyt.life\",\n    \"aboutURL\": \"https://github.com/SilverJun/Yingyeothon33/blob/main/README.md\"\n}\n```\n\n# REST API\nyyt33에서는 두가지 API를 제공합니다.\n1. 현재 설정된 URL 가져오기.\n2. 새로운 URL 설정하기.\n\n모두 JSON 형식의 응답을 반환합니다. 실패할 경우, code가 -1로 리턴되고 에러 관련 정보들이 추가로 담겨서 반환됩니다.\n\n## 현재 설정된 URL 가져오기.\n```bash\ncurl --request GET \\\n  --url http://localhost:3000/api/current \\\n  --header 'User-Agent: insomnia/9.0.0'\n\n# {\n# \t\"current_url\": \"https://www.yyt.life/2024/04/27/the-33.html\",\n# \t\"code\": 0,\n# \t\"message\": \"success\"\n# }\n```\n\n## 새로운 URL 설정하기.\n```bash\ncurl --request POST \\\n  --url http://localhost:3000/api/current \\\n  --header 'Content-Type: application/json' \\\n  --header 'User-Agent: insomnia/9.0.0' \\\n  --data '{\n\t\"request_url\": \"https://www.yyt.life/2024/04/27/the-33.html\"\n}'\n\n# {\n# \t\"code\": 0,\n# \t\"message\": \"success\"\n# }\n```\n\n자세한건 Insomnia_2024-04-27.har 파일을 참고해주세요\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverjun%2Fyingyeothon33","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverjun%2Fyingyeothon33","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverjun%2Fyingyeothon33/lists"}