{"id":15101894,"url":"https://github.com/janluksoft/node_express_ts_controllers_async","last_synced_at":"2026-02-08T03:33:55.996Z","repository":{"id":220214438,"uuid":"750387737","full_name":"janluksoft/Node_Express_TS_controllers_async","owner":"janluksoft","description":"Node Express TS, asynch: uses GET, POST method. File division into router, controllers, views;","archived":false,"fork":false,"pushed_at":"2024-01-31T14:50:09.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T16:39:18.601Z","etag":null,"topics":["async-await","asynchronous","controllers","express","get-post-method","handlebars","hbs","node","nodejs","routing","typescript"],"latest_commit_sha":null,"homepage":"","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/janluksoft.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}},"created_at":"2024-01-30T14:53:16.000Z","updated_at":"2024-01-31T20:11:24.000Z","dependencies_parsed_at":"2024-02-06T08:45:42.844Z","dependency_job_id":null,"html_url":"https://github.com/janluksoft/Node_Express_TS_controllers_async","commit_stats":null,"previous_names":["janluksoft/node_express_ts_controllers_async"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janluksoft/Node_Express_TS_controllers_async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNode_Express_TS_controllers_async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNode_Express_TS_controllers_async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNode_Express_TS_controllers_async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNode_Express_TS_controllers_async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janluksoft","download_url":"https://codeload.github.com/janluksoft/Node_Express_TS_controllers_async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janluksoft%2FNode_Express_TS_controllers_async/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29219274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T03:18:47.732Z","status":"ssl_error","status_checked_at":"2026-02-08T03:15:31.985Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["async-await","asynchronous","controllers","express","get-post-method","handlebars","hbs","node","nodejs","routing","typescript"],"created_at":"2024-09-25T18:42:17.960Z","updated_at":"2026-02-08T03:33:55.982Z","avatar_url":"https://github.com/janluksoft.png","language":"TypeScript","readme":"## The Node Express JS app with the controller structure\n\nThis web application demonstrates the use of GET and POST methods \nby making browser requests to a node server and vice versa.\n\nThis application has:\n\n\n- Express framework;\n- TypeScript language;\n- Asynchronous work of the application (async/await);\n- Built-in middleware: express.static;\n- Partials (layouts) of header, footer\n- Hbs template engine;\n- Helpers: [#each], [#if];\n- Multi-page portal - switching from the menu;\n- Request handling: Get, Post;\n- Configured tsconfig.json file;\n- Debug enabled on the node server side (.map files);\n- Folder [disc] of compiled .js files;\n- Division into files .ts structure in [src] folder:\n    - Server;\n    - App_hbs;\n    - Routers;\n    - Controller applications (POST method);\n    - Controller pages (GET method);\n    - Data class;\n\n.\n![](jpg/Node64Tb_3.png)\n\n## Application operation\n\nThis application has a good file structure for separating tasks in the back-end: app, router, controllers. \nMany websites are used in large web-apps. Handling multiple pages in one file - causes confusion and lack of order. \nTherefore, tasks are divided into different folders and files. GET commands are handled by [\\src\\controllers\\controller.pages.ts], POST by [src/controllers/controller.app.ts] and separation is handled by: [\\src\\routes\\routerts.ts].      \n\nPages are switched via the Get method. The router finds the correct EndPoint and based on it, renders the page to the browser. On Log page - the button sends login data to the Node server using the POST method. The server analyzes these login details. If the data is correct - the Node will return a table for display.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanluksoft%2Fnode_express_ts_controllers_async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanluksoft%2Fnode_express_ts_controllers_async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanluksoft%2Fnode_express_ts_controllers_async/lists"}