{"id":19632853,"url":"https://github.com/shubhamd99/nodejs-express-typescript","last_synced_at":"2026-05-06T04:31:32.741Z","repository":{"id":42344329,"uuid":"193413825","full_name":"shubhamd99/nodejs-express-typescript","owner":"shubhamd99","description":"NodeJS Express Typescript","archived":false,"fork":false,"pushed_at":"2022-12-10T19:59:57.000Z","size":255,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T21:17:00.572Z","etag":null,"topics":["express","express-handlebars","express-middleware","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","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/shubhamd99.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}},"created_at":"2019-06-24T01:29:32.000Z","updated_at":"2019-06-24T01:52:08.000Z","dependencies_parsed_at":"2023-01-26T07:15:44.142Z","dependency_job_id":null,"html_url":"https://github.com/shubhamd99/nodejs-express-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shubhamd99/nodejs-express-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Fnodejs-express-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Fnodejs-express-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Fnodejs-express-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Fnodejs-express-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhamd99","download_url":"https://codeload.github.com/shubhamd99/nodejs-express-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Fnodejs-express-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"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":["express","express-handlebars","express-middleware","nodejs","typescript"],"created_at":"2024-11-11T12:15:35.142Z","updated_at":"2026-05-06T04:31:32.726Z","avatar_url":"https://github.com/shubhamd99.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup (Node Express Typescript)\n\n1. tsc --init (es6, outDir - /dist, rootDir - /src, moduleResolution: node)\n2. npm init -y\n3. npm i express\n4. npm i -D typescript ts-node nodemon @types/node @types/express (dev dependency)\n5. add these scripts to package.json:\n\n  ```\n  \"start\": \"node dist/app.js\",\n  \"dev\": \"nodemon src/app.ts\",\n  \"build\": \"tsc -p .\"\n  ```\n6. npm run dev\n\n\n## Stuff\n1. For importing few static files in nodejs\n```\napp.get('/', (req: Request, res: Response, next: NextFunction) =\u003e {\n  res.sendFile(path.join(__dirname, '../public', 'index.html'));\n});\n```\n2. For multiple static imports in nodejs\n```\napp.use(express.static(path.join(__dirname, '../public')))\n```\n\n![alt_img](https://i.imgur.com/VUj4A28.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamd99%2Fnodejs-express-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhamd99%2Fnodejs-express-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamd99%2Fnodejs-express-typescript/lists"}