{"id":25767045,"url":"https://github.com/somnathkar000/basic-ts-setup","last_synced_at":"2026-05-15T04:05:18.926Z","repository":{"id":275326092,"uuid":"925756411","full_name":"SomnathKar000/Basic-TS-Setup","owner":"SomnathKar000","description":"This repository demonstrates a minimal setup for running TypeScript files seamlessly using nodemon and ts-node. The configuration allows automatic compilation and execution of TypeScript files whenever changes are detected.","archived":false,"fork":false,"pushed_at":"2025-02-02T06:15:55.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T23:19:11.615Z","etag":null,"topics":["basic-setup","nodejs","nodemon","ts-node"],"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/SomnathKar000.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T17:12:04.000Z","updated_at":"2025-02-02T06:15:58.000Z","dependencies_parsed_at":"2025-02-01T18:27:08.129Z","dependency_job_id":"31f85093-e912-4bc3-b332-bf9c311cb207","html_url":"https://github.com/SomnathKar000/Basic-TS-Setup","commit_stats":null,"previous_names":["somnathkar000/basic-ts-setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SomnathKar000/Basic-TS-Setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomnathKar000%2FBasic-TS-Setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomnathKar000%2FBasic-TS-Setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomnathKar000%2FBasic-TS-Setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomnathKar000%2FBasic-TS-Setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SomnathKar000","download_url":"https://codeload.github.com/SomnathKar000/Basic-TS-Setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomnathKar000%2FBasic-TS-Setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33053154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["basic-setup","nodejs","nodemon","ts-node"],"created_at":"2025-02-26T23:18:54.360Z","updated_at":"2026-05-15T04:05:18.909Z","avatar_url":"https://github.com/SomnathKar000.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic-TS-Setup 🚀\n\nA minimal TypeScript setup using **nodemon** and **ts-node** for seamless development.\n\n## Features\n\n- 🔄 **Live reloading** with `nodemon`\n- 📌 **No manual compilation** using `ts-node`\n- 📂 Watches `.ts` files inside the `src/` directory\n\n## Installation \u0026 Usage\n\n### 1️⃣ Install dependencies\n\n```sh\nnpm install\n\n2️⃣ Start development mode\n\nnpm run dev\n\n3️⃣ Project Structure\n\n📁 explore-ts\n ┣ 📁 src\n ┃ ┗ 📜 index.ts  # Entry point\n ┣ 📜 package.json\n ┣ 📜 nodemon.json\n ┗ 📜 README.md\n\nConfiguration\n\npackage.json\n\n{\n  \"name\": \"explore-ts\",\n  \"version\": \"1.0.0\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"dev\": \"nodemon\"\n  },\n  \"devDependencies\": {\n    \"nodemon\": \"^3.1.9\",\n    \"ts-node\": \"^10.9.2\"\n  }\n}\n\nnodemon.json\n\n{\n  \"watch\": [\"src\"],\n  \"ext\": \"ts\",\n  \"exec\": \"ts-node ./src/index.ts\"\n}\n```\n\nIn the nodemon.json file, these fields are configuring how Nodemon watches and restarts your TypeScript application. Here’s what each field means:\n\n1. watch: [“src”]\n\n   - This tells Nodemon to watch the \"src\" directory for any changes.\n   - If any file inside \"src\" changes, Nodemon will restart the application.\n\n2. \"ext\": \"ts,js\"\n\n   - Specifies the file extensions that Nodemon should watch.\n   - In this case, it only watches .ts (TypeScript) files.\n   - If you also wanted to watch JavaScript files, you could use:\n\n   ```sh\n   \"ext\": \"ts,js\"\n   ```\n\n3. exec: “ts-node ./src/index.ts”\n   - This is the command Nodemon executes when restarting.\n   - It runs ts-node ./src/index.ts, which compiles and runs the TypeScript file index.ts using ts-node.\n\nHow It Works\n- If any .ts file in src/ changes, Nodemon automatically restarts ts-node ./src/index.ts.\n\nNotes\n\n- Ensure you have Node.js installed.\n- The entry file should be src/index.ts.\n- Modify nodemon.json to watch additional files if needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomnathkar000%2Fbasic-ts-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomnathkar000%2Fbasic-ts-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomnathkar000%2Fbasic-ts-setup/lists"}