{"id":20504507,"url":"https://github.com/candyframework/candyjs","last_synced_at":"2025-09-05T11:09:16.385Z","repository":{"id":57193599,"uuid":"102684290","full_name":"candyframework/candyjs","owner":"candyframework","description":"Node MVC 框架","archived":false,"fork":false,"pushed_at":"2024-12-15T04:25:07.000Z","size":1718,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T16:46:45.448Z","etag":null,"topics":["javascript","mvc-framework","nodejs","rest","typescript"],"latest_commit_sha":null,"homepage":"https://candyframework.github.io/candyjs-guide","language":"TypeScript","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/candyframework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE_LOG.txt","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,"zenodo":null}},"created_at":"2017-09-07T02:58:05.000Z","updated_at":"2024-12-15T04:25:11.000Z","dependencies_parsed_at":"2024-04-11T11:28:37.051Z","dependency_job_id":"f578e324-1459-4d5e-be92-603705a2e85e","html_url":"https://github.com/candyframework/candyjs","commit_stats":{"total_commits":372,"total_committers":2,"mean_commits":186.0,"dds":0.4516129032258065,"last_synced_commit":"c2186536d8e4b930f9c1096d9b79ab5a48758eb1"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/candyframework/candyjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fcandyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fcandyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fcandyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fcandyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candyframework","download_url":"https://codeload.github.com/candyframework/candyjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candyframework%2Fcandyjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273747788,"owners_count":25160652,"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-05T02:00:09.113Z","response_time":402,"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":["javascript","mvc-framework","nodejs","rest","typescript"],"created_at":"2024-11-15T19:38:28.003Z","updated_at":"2025-09-05T11:09:16.298Z","avatar_url":"https://github.com/candyframework.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An object-oriented efficient MVC and REST framework\n\n[![NPM version](https://img.shields.io/npm/v/candyjs.svg?style=flat-square)](https://www.npmjs.com/package/candyjs)\n[![Test coverage](https://img.shields.io/codecov/c/github/candyframework/candyjs.svg?style=flat-square)](https://app.codecov.io/gh/candyframework/candyjs)\n\nCandyJs is a new framework and it is not based on the third party framework\n\n### Deno\n\nTry https://jsr.io/@candy/framework\n\n### Why CandyJs\n\n- CandyJs implements the MVC (Model-View-Controller) architectural pattern\n\n- Auto router system\n\n- CandyJs is extremely extensible\n\n- Practice with TypeScript\n\n### DOC\n\n- doc https://candyframework.github.io/candyjs-guide\n\n- examples https://gitee.com/candyjs/candyjs-examples\n\n- examples https://github.com/candyframework/candyjs-examples\n\n### Version of Node.js\n\nnodejs \u003e= 10.0\n\n### Quick start\n\n```bash\n# install\nnpm install -g @candyjs/cli\n\n# run the command\ncandyjs-cli\n```\n\n### Hello world\n\nCandyJs application start with an entry file\n\n```javascript\n// the entry file index.ts\nimport \"@candyjs/tswrapper\";\n\nimport CandyJs from \"candyjs\";\nimport App from \"candyjs/web/Application\";\n\nnew CandyJs(\n    new App({\n        \"id\": 1,\n\n        // define debug mode\n        \"debug\": true,\n\n        // define the base path of the running application\n        \"appPath\": __dirname + \"/app\",\n    }),\n).listen(2333, () =\u003e {\n    console.log(\"listen on 2333\");\n});\n```\n\n### Alias\n\n- @candy the directory where the Candy.ts file is located\n\n- @app the base path of the running application\n\n- @runtime the runtime path of the running application. Defaults to @app/runtime\n\n### Application structure example\n\n\u003cpre\u003e\n|- index.ts\n|\n|- node_modules\n|\n|- public\n|\n|- app\n|  |\n|  |-- controllers\n|      |\n|      |-- user\n|      |   |\n|      |   |-- IndexController.ts\n|      |   |-- OtherController.ts\n|      |\n|      |-- goods\n|      |   |\n|      |   |-- IndexController.ts\n|      |   |-- OtherController.ts\n|      |\n|   -- views\n|      |\n|      |-- user\n|      |   |\n|      |   |-- index.html\n|      |   |-- other.html\n|      |\n|   -- goods\n|      |   |\n|      |   |-- index.html\n|      |   |-- other.html\n|      |\n|   -- modules\n|      |\n|      |-- actives\n|      |   |\n|      |   |-- controllers\n|      |   |   |\n|      |   |   |-- IndexController.ts\n|      |   |\n|      |   |-- views\n|      |   |   |\n|      |   |   |-- index.html\n|      |   |\n|      |\n|   -- runtime\n|\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandyframework%2Fcandyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandyframework%2Fcandyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandyframework%2Fcandyjs/lists"}