{"id":22109337,"url":"https://github.com/canfeit/node-api-demo","last_synced_at":"2025-03-24T03:46:52.746Z","repository":{"id":135933997,"uuid":"168323133","full_name":"canfeit/node-api-demo","owner":"canfeit","description":"node api demo","archived":false,"fork":false,"pushed_at":"2019-01-31T03:59:28.000Z","size":212,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T10:17:15.055Z","etag":null,"topics":["http","jwt","node","restful","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canfeit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-01-30T10:19:36.000Z","updated_at":"2021-03-10T09:29:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"a90c6d4a-836c-4663-997f-eac313cb6373","html_url":"https://github.com/canfeit/node-api-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfeit%2Fnode-api-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfeit%2Fnode-api-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfeit%2Fnode-api-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canfeit%2Fnode-api-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canfeit","download_url":"https://codeload.github.com/canfeit/node-api-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245206535,"owners_count":20577582,"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":["http","jwt","node","restful","web"],"created_at":"2024-12-01T09:31:42.548Z","updated_at":"2025-03-24T03:46:52.728Z","avatar_url":"https://github.com/canfeit.png","language":"JavaScript","readme":"## node api demo\n\n原生 api 实现简单静态资源响应及登陆/注册/身份认证功能\n\n## 架构\n\n- web 服务:[node http](https://nodejs.org/dist/latest-v11.x/docs/api/http.html)\n- 数据库:[MySQL](http://mysql.com)\n- 数据库驱动:[mysqljs](https://github.com/mysqljs/mysql)\n- 登陆认证:[jwt(node crypto)](https://nodejs.org/dist/latest-v11.x/docs/api/crypto.html)\n\n## 结构\n\n```\nnode-api-demo/           原生api实现简单web项目\n├── .gitignore           git提交忽略清单\n├── db.js                数据库连接\n├── index.js             服务入口\n├── jwt.js               jwt实现\n├── package.json         项目定义文件\n├── README.md            本自述文件\n├── router.js            路由设置方式1\n├── routes.js            路由设置方式2\n├── controller/          请求处理\n│   └── user.js          用户请求处理\n├── services/            业务逻辑层\n│   └── user.js          用户业务处理\n├── public/              静态资源\n│   ├── favicon.ico      项目Favorites Icon\n│   └── index.html       首页\n└── node_modules/        第三方依赖\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanfeit%2Fnode-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanfeit%2Fnode-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanfeit%2Fnode-api-demo/lists"}