{"id":22558026,"url":"https://github.com/jd-apprentice/node-ts","last_synced_at":"2026-04-07T08:01:31.702Z","repository":{"id":39899246,"uuid":"492326946","full_name":"jd-apprentice/Node-TS","owner":"jd-apprentice","description":"📁 Template -\u003e NodeJS + Typescript + Express + Mongodb + Mongoose + Heroku","archived":false,"fork":false,"pushed_at":"2022-07-24T06:15:26.000Z","size":58,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:34:42.016Z","etag":null,"topics":["express","heroku","mongodb","mongoose","nodejs","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/jd-apprentice.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":"2022-05-14T21:16:34.000Z","updated_at":"2022-07-24T06:32:09.000Z","dependencies_parsed_at":"2022-08-27T12:51:01.815Z","dependency_job_id":null,"html_url":"https://github.com/jd-apprentice/Node-TS","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/jd-apprentice/Node-TS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2FNode-TS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2FNode-TS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2FNode-TS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2FNode-TS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-apprentice","download_url":"https://codeload.github.com/jd-apprentice/Node-TS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2FNode-TS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["express","heroku","mongodb","mongoose","nodejs","typescript"],"created_at":"2024-12-07T20:10:44.266Z","updated_at":"2026-04-07T08:01:31.682Z","avatar_url":"https://github.com/jd-apprentice.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🏃‍♂️ Run project locally\n\n```\n\u003e\u003e npm i -g yarn\n\n\u003e\u003e git clone https://github.com/jd-apprentice/Node-TS.git\n\n\u003e\u003e cd ./Node-TS\n\n\u003e\u003e yarn install\n\n\u003e\u003e yarn dev\n```\n\n## 🧪 Test locally\n\n```\n- These are the routes with insomnia\n\n\u003e\u003e GET {{ _.BASE_URL }}/users\n\n\u003e\u003e POST {{ _.BASE_URL }}/users\n\n\u003e\u003e GET {{ _.BASE_URL }}/users/:id\n\n\u003e\u003e DELETE {{ _.BASE_URL }}/users/:id\n\n\u003e\u003e PUT {{ _.BASE_URL }}/users/:id\n```\n\n- Create\n  ![CREATE](https://cdn.discordapp.com/attachments/875262629516546089/975128172502847640/unknown.png)\n- Find\n  ![USERS](https://cdn.discordapp.com/attachments/875262629516546089/975129797401378866/unknown.png)\n- FindOne\n  ![USER](https://cdn.discordapp.com/attachments/875262629516546089/975130152558293072/unknown.png)\n- Update\n  ![PUT](https://cdn.discordapp.com/attachments/875262629516546089/975132183616430110/unknown.png)\n- Delete\n  ![DELETE](https://cdn.discordapp.com/attachments/875262629516546089/975132448339918849/unknown.png)\n\n## 🍇 Heroku deploy\n\n- Go ahead to https://www.heroku.com/ create an account then log in into the dashboard\n\n![DASHBOARD](https://cdn.discordapp.com/attachments/875262629516546089/975137204596768768/unknown.png)\n\n- Once there create a new app\n\n![NEWAPP](https://cdn.discordapp.com/attachments/875262629516546089/975137989690802237/unknown.png)\n\n- Go to the settings page and select buildpacks then choose nodejs\n\n![BUILDPACK](https://cdn.discordapp.com/attachments/875262629516546089/975139047720763452/unknown.png)\n\n- After that you can go into deploys and deploy the app, for this method you have multiple options I often use github\n\n![DEPLOY](https://cdn.discordapp.com/attachments/875262629516546089/975139525263261796/unknown.png)\n\n- And below that there is the option for automatic deploys (when you push something to your selected branch ej main it will automatically deploy to heroku)\n\n![ADEPLOY](https://cdn.discordapp.com/attachments/875262629516546089/975139885776261191/unknown.png)\n\n- And for last if u haven't done already there is the manual deploy where you select the branch and deploy the app\n\n![MANUAL](https://cdn.discordapp.com/attachments/875262629516546089/975140221509312532/unknown.png)\n\n## 🏁 Finish\n\n- And we are done! if everything was done correctly your app should be up and running on heroku, you can check it in the `Open App` button on their dashboard\n\n- Here are some example apps i've build in the past with this structure\n\n- A simple crud app [CRUD-BE](https://github.com/jd-apprentice/MEAN-APP-BE)\n- Get news from Infobae [Infobae-API](https://github.com/jd-apprentice/infobae-api)\n- Get random waifus [Waifuland](https://github.com/jd-apprentice/waifuland-api)\n\n## 📂 Folder structure\n\n```src\n|--\u003e @types\n|--\u003e config\n|--\u003e controllers\n    \u003euser-controller.ts\n|--\u003e models\n    |--\u003e interfaces\n    \u003euser.ts\n|--\u003e repositories\n    \u003euser-repository.ts\n|--\u003e routes\n    \u003euser-route.ts\n    \u003eindex.ts\n|--\u003e services\n    \u003euser-service.ts\n\u003edatabase.ts (Connection with the database)\n\u003eindex.ts (Run the app)\n\u003eserver.ts (App instance)\n```\n\n## 📚 Stack \u0026 Technologies\n\n- Nodejs\n- Typescript\n- Express\n- Mongodb\n- Mongoose\n- Heroku\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fnode-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-apprentice%2Fnode-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fnode-ts/lists"}