{"id":43128637,"url":"https://github.com/500tech/react-course-ts","last_synced_at":"2026-01-31T20:52:46.410Z","repository":{"id":33836167,"uuid":"131814830","full_name":"500tech/react-course-ts","owner":"500tech","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-02T02:45:50.000Z","size":2417,"stargazers_count":2,"open_issues_count":9,"forks_count":2,"subscribers_count":13,"default_branch":"jpm/ts","last_synced_at":"2025-04-30T10:33:29.428Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/500tech.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":"2018-05-02T07:33:00.000Z","updated_at":"2019-11-20T09:14:11.000Z","dependencies_parsed_at":"2023-01-15T02:51:46.439Z","dependency_job_id":null,"html_url":"https://github.com/500tech/react-course-ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/500tech/react-course-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Freact-course-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Freact-course-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Freact-course-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Freact-course-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/500tech","download_url":"https://codeload.github.com/500tech/react-course-ts/tar.gz/refs/heads/jpm/ts","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Freact-course-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28954406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-31T20:52:46.322Z","updated_at":"2026-01-31T20:52:46.391Z","avatar_url":"https://github.com/500tech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up\n```sh\nnpm init -y # Setup a new project with NPM using the defaults\nnpm install --save-dev typescript # install typescript as a dev dependency\nnpx -c \"tsc --init\" # Create a basic configuration for our compiler\n```\n\n## Create first typescript file\n```ts\n// index.ts\nconst x: number = 5;\nconsole.log('#######', x);\n```\n\nCompile \u0026 Run:\n```sh\nnpx -c \"tsc -p .\" \u0026\u0026 node .\n```\n\n# Getting serious\n\n- Set `outDir` to `\"./dist\"`, and `rootDir` to `\"./src\"` in `tsconfig.json`\n- Remove the generated `index.js`\n- Move `index.ts` into `src` directory\n\n## Watch mode (TS)\n\n- Add a new script inside your `package.json`, called: `\"watch-ts\": \"tsc -p . -w\"`\n- Run `npm run watch-ts`\n- Run `node dist`\n- Change your `index.ts` to print something else\n- Re-run `node dist`\n- Profit!\n\n## Watch mode\n\n- Run `npm install --save-dev nodemon concurrently`\n- Add new scripts:\n  ```json\n  {\n    ...\n    \"run-js\": \"nodemon dist/index.js\",\n    \"start\": \"concurrently 'npm:watch-ts' 'npm:run-js'\"\n  }\n  ```\n- Run `npm start`, and change files for fun and profit :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F500tech%2Freact-course-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F500tech%2Freact-course-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F500tech%2Freact-course-ts/lists"}