{"id":19477710,"url":"https://github.com/shiguang-coding/vercel-img","last_synced_at":"2026-02-25T06:09:59.532Z","repository":{"id":255143673,"uuid":"848667920","full_name":"Shiguang-coding/vercel-img","owner":"Shiguang-coding","description":"時光图床是一个简单的图床应用，允许用户通过浏览器浏览和管理图片。本项目使用 `Node.js` 和 `Express` 构建，并可以轻松部署到 `Vercel`。","archived":false,"fork":false,"pushed_at":"2024-08-28T07:48:10.000Z","size":11067,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T09:46:51.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/Shiguang-coding.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-08-28T07:21:23.000Z","updated_at":"2025-04-06T16:11:35.000Z","dependencies_parsed_at":"2024-08-28T08:56:15.873Z","dependency_job_id":"c49e7fce-582a-4cc2-8e6b-52e15f7ab421","html_url":"https://github.com/Shiguang-coding/vercel-img","commit_stats":null,"previous_names":["shiguang-coding/vercel-img"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shiguang-coding/vercel-img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiguang-coding%2Fvercel-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiguang-coding%2Fvercel-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiguang-coding%2Fvercel-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiguang-coding%2Fvercel-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shiguang-coding","download_url":"https://codeload.github.com/Shiguang-coding/vercel-img/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiguang-coding%2Fvercel-img/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29812030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"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":[],"created_at":"2024-11-10T19:45:51.269Z","updated_at":"2026-02-25T06:09:59.518Z","avatar_url":"https://github.com/Shiguang-coding.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# 時光图床\n\n時光图床是一个简单的图床应用，允许用户通过浏览器浏览和管理图片。本项目使用 `Node.js` 和 `Express` 构建，并可以轻松部署到 `Vercel`。\n\n详细介绍可参考文章[Vercel搭建图床](https://blog.shiguang666.eu.org/2024/08/28/b416c7847722/)\n\n## 功能特性\n\n- 浏览目录和图片\n- 点击图片预览大图\n- 支持多层级目录结构\n\n## 安装和运行\n\n### 前提条件\n\n确保你已经安装了 `Node.js` 和 `npm`。\n\n### 安装依赖\n\n```bash\nnpm install\n```\n\n### 运行程序\n\n```bash\nnode server.js\n```\n\n或者\n\n```bash\nnpm start\n```\n\n运行后，打开浏览器访问 `http://localhost:8080`，即可看到图床应用。\n\n## 效果演示\n\n![show](https://github.com/Shiguang-coding/vercel-img/blob/main/public/2024/08/28/show.gif?raw=true)\n\n## 部署到 Vercel\n\n你可以使用 Vercel 一键部署按钮将本项目部署到 Vercel，无需手动配置。\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Shiguang-coding/blogpic)\n\n### 手动部署步骤\n\n1. **创建 Vercel 账户**：如果你还没有 Vercel 账户，首先需要注册一个。\n2. **安装 Vercel CLI**（可选）：你可以使用 Vercel CLI 来部署你的项目。\n\n    ```bash\n    npm install -g vercel\n    ```\n\n3. **登录 Vercel**：\n\n    ```bash\n    vercel login\n    ```\n\n4. **部署项目**：\n\n    ```bash\n    vercel\n    ```\n\n    Vercel CLI 会引导你完成部署过程，包括设置项目名称、选择项目类型等。\n\n5. **配置 `vercel.json`**（可选）：如果你需要自定义部署配置，可以在项目根目录下创建一个 `vercel.json` 文件。\n\n    ```json\n    {\n      \"version\": 2,\n      \"builds\": [\n        {\n          \"src\": \"server.js\",\n          \"use\": \"@vercel/node\"\n        }\n      ],\n      \"routes\": [\n        {\n          \"src\": \"/(.*)\",\n          \"dest\": \"/\"\n        }\n      ]\n    }\n    ```\n\n6. **访问你的应用**：部署完成后，Vercel 会提供一个 URL 来访问你的应用。你可以在 Vercel 仪表板中找到这个 URL，并进行进一步的域名配置。\n\n## 项目结构\n\n```\nmy-project/\n├── public/\n│   └── index.html\n├── server.js\n├── package.json\n└── vercel.json\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiguang-coding%2Fvercel-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiguang-coding%2Fvercel-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiguang-coding%2Fvercel-img/lists"}