{"id":13907755,"url":"https://github.com/realm/node-template-project","last_synced_at":"2025-10-08T03:31:52.073Z","repository":{"id":49099953,"uuid":"94355904","full_name":"realm/node-template-project","owner":"realm","description":"A template for your Node and TypeScript Project with Visual Studio Code Debugging!","archived":true,"fork":false,"pushed_at":"2017-11-22T09:54:12.000Z","size":31,"stargazers_count":23,"open_issues_count":1,"forks_count":9,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-10-02T06:22:14.404Z","etag":null,"topics":["chai","mocha","node","template","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/realm.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":"2017-06-14T17:23:22.000Z","updated_at":"2024-08-29T11:06:12.000Z","dependencies_parsed_at":"2022-09-24T01:33:32.454Z","dependency_job_id":null,"html_url":"https://github.com/realm/node-template-project","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/realm%2Fnode-template-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realm%2Fnode-template-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realm%2Fnode-template-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realm%2Fnode-template-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realm","download_url":"https://codeload.github.com/realm/node-template-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235678929,"owners_count":19028301,"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":["chai","mocha","node","template","typescript"],"created_at":"2024-08-06T23:02:08.938Z","updated_at":"2025-10-08T03:31:46.779Z","avatar_url":"https://github.com/realm.png","language":"TypeScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Node Template Project - With TypeScript!\n\nAt Realm we love TypeScript! We've seen great success in working across multiple remote teams with it and want to share our base template when creating projects. \n\n* Has TypeScript\n* Has TypeScript Lint (aka. tslint)\n* Has Visual Studio Code Debugging!\n* Has Testing with Mocha + Chai\n* Has Gitignore\n\n# Get this Template!\n\nThis is a great starting point for using Node.JS, TypeScript, and Visual Studio Code. All artifacts get created in the `dist` folder. All the sourcecode is in `src`\n\nJust clone this repo and point to your new origin!\n\n1. Run `git clone https://github.com/realm/node-template-project.git --depth 1`\n2. Run `git remote set-url origin https://github.com/USERNAME/REPOSITORY.git`\n3. Cd into the directory and run `npm install` (or if you have `yarn`)\n\n# Commands for Building, Cleaning, Testing, Linting and Watching\n\nAfter `npm install`\n\n1. To Build `npm run build`\n2. To Clean Artifacts `npm run clean`\n3. To Test `npm run test`\n4. To Lint `npm run lint`\n5. To Buld and Watch when you make changes `npm run watch`\n\n# Debugging with Visual Studio Code\n\n1. Set a breakpoint in your code ending in `.ts` or your test ending in `.spec.ts`\n2. Run Either `src/index.ts` or `All Tests` in the debug pane. \n\n# Some Advice\n\nNever use arrow functions on the `Mocha` test handlers. Why? The callback has its own set of methods. The arrow function does not have an easy way to reference `this`\n\nSay you want to increase the timeout of the function callback in your tests\n\n```javascript\nit('should do something', () =\u003e {\n    this.timeout(2000) // this is not the callback function!\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealm%2Fnode-template-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealm%2Fnode-template-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealm%2Fnode-template-project/lists"}