{"id":20766152,"url":"https://github.com/navono/node-demo","last_synced_at":"2025-03-11T18:48:20.827Z","repository":{"id":74497049,"uuid":"367219888","full_name":"navono/node-demo","owner":"navono","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-09T02:17:33.000Z","size":1326,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-26T03:36:26.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/navono.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["jsynowiec"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-05-14T01:42:49.000Z","updated_at":"2022-01-15T06:21:12.000Z","dependencies_parsed_at":"2024-11-17T23:30:15.711Z","dependency_job_id":null,"html_url":"https://github.com/navono/node-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"navono/node-typescript-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fnode-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fnode-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fnode-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fnode-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navono","download_url":"https://codeload.github.com/navono/node-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243093948,"owners_count":20235465,"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":[],"created_at":"2024-11-17T11:21:40.652Z","updated_at":"2025-03-11T18:48:20.795Z","avatar_url":"https://github.com/navono.png","language":"TypeScript","funding_links":["https://github.com/sponsors/jsynowiec"],"categories":[],"sub_categories":[],"readme":"[![Sponsor][sponsor-badge]][sponsor]\n[![TypeScript version][ts-badge]][typescript-4-2]\n[![Node.js version][nodejs-badge]][nodejs]\n[![APLv2][license-badge]][license]\n[![Build Status - Travis][travis-badge]][travis-ci]\n[![Build Status - GitHub Actions][gha-badge]][gha-ci]\n\n# node-typescript-boilerplate\n\n👩🏻‍💻 Developer Ready: A comprehensive template. Works out of the box for most [Node.js][nodejs] projects.\n\n🏃🏽 Instant Value: All basic tools included and configured:\n\n- [TypeScript][typescript] [4.2][typescript-4-2]\n- [ESLint][eslint] with some initial rules recommendation\n- [Jest][jest] for fast unit testing and code coverage\n- Type definitions for Node.js and Jest\n- [Prettier][prettier] to enforce consistent code style\n- NPM [scripts](#available-scripts) for common operations\n- Simple example of TypeScript code and unit test\n- .editorconfig for consistent file format\n- Reproducible environments thanks to [Volta][volta]\n- Example configuration for [GitHub Actions][gh-actions] and [Travis CI][travis]\n\n🤲 Free as in speech: available under the APLv2 license.\n\n## Getting Started\n\nThis project is intended to be used with the latest Active LTS release of [Node.js][nodejs].\n\n### Use as a repository template\n\nTo start, just click the **[Use template][repo-template-action]** link (or the green button). Now start adding your code in the `src` and unit tests in the `__tests__` directories.\n\n### Clone repository\n\nTo clone the repository use the following commands:\n\n```sh\ngit clone https://github.com/jsynowiec/node-typescript-boilerplate\ncd node-typescript-boilerplate\nnpm install\n```\n\n### Download latest release\n\nDownload and unzip current `main` branch or one of tags:\n\n```sh\nwget https://github.com/jsynowiec/node-typescript-boilerplate/archive/main.zip -O node-typescript-boilerplate.zip\nunzip node-typescript-boilerplate.zip \u0026\u0026 rm node-typescript-boilerplate.zip\n```\n\n## Available Scripts\n\n- `clean` - remove coverage data, Jest cache and transpiled files,\n- `build` - transpile TypeScript to ES6,\n- `build:watch` - interactive watch mode to automatically transpile source files,\n- `lint` - lint source files and tests,\n- `test` - run tests,\n- `test:watch` - interactive watch mode to automatically re-run tests\n\n## Additional Informations\n\n### Why include Volta\n\n[Volta][volta]’s toolchain always keeps track of where you are, it makes sure the tools you use always respect the settings of the project you’re working on. This means you don’t have to worry about changing the state of your installed software when switching between projects. For example, it's [used by engineers at LinkedIn][volta-tomdale] to standarize tools and have reproducible development environments.\n\nI recommend to [install][volta-getting-started] Volta and use it to manage your project's toolchain.\n\n### Writing tests in JavaScript\n\nWriting unit tests in TypeScript can sometimes be troublesome and confusing. Especially when mocking dependencies and using spies.\n\nThis is **optional**, but if you want to learn how to write JavaScript tests for TypeScript modules, read the [corresponding wiki page][wiki-js-tests].\n\n## Backers \u0026 Sponsors\n\nSupport this project by becoming a [sponsor][sponsor].\n\n## License\n\nLicensed under the APLv2. See the [LICENSE](https://github.com/jsynowiec/node-typescript-boilerplate/blob/main/LICENSE) file for details.\n\n[ts-badge]: https://img.shields.io/badge/TypeScript-4.2-blue.svg\n[nodejs-badge]: https://img.shields.io/badge/Node.js-\u003e=%2014.16-blue.svg\n[nodejs]: https://nodejs.org/dist/latest-v14.x/docs/api/\n[travis-badge]: https://travis-ci.org/jsynowiec/node-typescript-boilerplate.svg?branch=main\n[travis-ci]: https://travis-ci.org/jsynowiec/node-typescript-boilerplate\n[gha-badge]: https://github.com/jsynowiec/node-typescript-boilerplate/actions/workflows/nodejs.yml/badge.svg\n[gha-ci]: https://github.com/jsynowiec/node-typescript-boilerplate/actions/workflows/nodejs.yml\n[typescript]: https://www.typescriptlang.org/\n[typescript-4-2]: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html\n[license-badge]: https://img.shields.io/badge/license-APLv2-blue.svg\n[license]: https://github.com/jsynowiec/node-typescript-boilerplate/blob/main/LICENSE\n[sponsor-badge]: https://img.shields.io/badge/♥-Sponsor-fc0fb5.svg\n[sponsor]: https://github.com/sponsors/jsynowiec\n[jest]: https://facebook.github.io/jest/\n[eslint]: https://github.com/eslint/eslint\n[wiki-js-tests]: https://github.com/jsynowiec/node-typescript-boilerplate/wiki/Unit-tests-in-plain-JavaScript\n[prettier]: https://prettier.io\n[volta]: https://volta.sh\n[volta-getting-started]: https://docs.volta.sh/guide/getting-started\n[volta-tomdale]: https://twitter.com/tomdale/status/1162017336699838467?s=20\n[gh-actions]: https://github.com/features/actions\n[travis]: https://travis-ci.org\n[repo-template-action]: https://github.com/jsynowiec/node-typescript-boilerplate/generate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavono%2Fnode-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavono%2Fnode-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavono%2Fnode-demo/lists"}