{"id":16430203,"url":"https://github.com/its-alex/node-api-project-template","last_synced_at":"2026-01-15T22:10:18.416Z","repository":{"id":44206991,"uuid":"174891931","full_name":"Its-Alex/node-api-project-template","owner":"Its-Alex","description":"This is a template for a NodeJS API","archived":false,"fork":false,"pushed_at":"2022-12-30T21:38:05.000Z","size":470,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T17:48:21.145Z","etag":null,"topics":["api","nodejs","template"],"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/Its-Alex.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}},"created_at":"2019-03-10T23:05:32.000Z","updated_at":"2019-03-15T10:03:00.000Z","dependencies_parsed_at":"2023-01-31T17:01:06.613Z","dependency_job_id":null,"html_url":"https://github.com/Its-Alex/node-api-project-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Its-Alex/node-api-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fnode-api-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fnode-api-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fnode-api-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fnode-api-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Its-Alex","download_url":"https://codeload.github.com/Its-Alex/node-api-project-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fnode-api-project-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T20:50:13.584Z","status":"ssl_error","status_checked_at":"2026-01-15T20:49:17.379Z","response_time":62,"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":["api","nodejs","template"],"created_at":"2024-10-11T08:26:02.983Z","updated_at":"2026-01-15T22:10:18.402Z","avatar_url":"https://github.com/Its-Alex.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-api-project-template\n\nThis is a node api project template to see how I work\n\n## Node architecture\n\n- `srcs` Sources folder\n- `dist` Folder for generated files\n- `tslint.json` TSLinter configuration file\n- `nodemon.json` Nodemon config file to watch project\n- `tsconfig.json` Typescript config file\n\n## Code architecture\n\nI always use the base like this:\n\n- Logger defined in [srcs/logger.ts](/srcs/logger.ts)\n- Swagger defined in [srcs/swagger.ts](/srcs/swagger.ts)\n- Stateless configuration setup with env [srcs/config.ts](/srcs/config.ts)\n- Routes folder with a gloabal router `index.ts` [srcs/routes](/srcs/routes)\n- Controllers folder for express route handlers\n  [srcs/controllers](/srcs/controllers)\n\n## Code standard\n\nAs a linter I like to use [standardjs](https://standardjs.com/) here I use tslint\nwith standard config\n\nIn `package.json` I often have at least five scripts:\n\n- start\n- build\n- watch\n- lint\n- test\n\nI prefer to use each CLI on code with npm like that we doesn't need to install\nglobal package and CLI in node_modules will be used\n\n## Docker\n\nI create a [Dockerfile](/Dockerfile) with mutlistage who first build project then run the\noutputed files in a second stage.\n\n# License\n\n[MIT](https://en.wikipedia.org/wiki/MIT_License)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Fnode-api-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fits-alex%2Fnode-api-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Fnode-api-project-template/lists"}