{"id":26469783,"url":"https://github.com/ocdbytes/typescriptserver","last_synced_at":"2026-04-02T01:02:48.620Z","repository":{"id":113750054,"uuid":"466044073","full_name":"ocdbytes/TypescriptServer","owner":"ocdbytes","description":"REST API Made with Typescript, NodeJs, Express and MongoDB","archived":false,"fork":false,"pushed_at":"2022-03-08T08:14:48.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:37:53.504Z","etag":null,"topics":["express","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ocdbytes.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}},"created_at":"2022-03-04T08:33:27.000Z","updated_at":"2022-03-08T08:17:10.000Z","dependencies_parsed_at":"2023-03-24T22:44:27.043Z","dependency_job_id":null,"html_url":"https://github.com/ocdbytes/TypescriptServer","commit_stats":null,"previous_names":["ocdbytes/typescriptserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ocdbytes/TypescriptServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FTypescriptServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FTypescriptServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FTypescriptServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FTypescriptServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocdbytes","download_url":"https://codeload.github.com/ocdbytes/TypescriptServer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FTypescriptServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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","mongodb","mongoose","nodejs","typescript"],"created_at":"2025-03-19T17:09:21.979Z","updated_at":"2026-04-02T01:02:48.587Z","avatar_url":"https://github.com/ocdbytes.png","language":"TypeScript","readme":"# Node JS \u0026 Typescript\n\n- Node.js\n- MongoDB with Mongoose\n- Typescript\n- Express and Express Middleware\n\n## Dependencies :\n\nWe need to install these in order to make a proper API\n\n```shell\nyarn add express yup config cors express mongoose pino pino-pretty dayjs bcrypt jsonwebtoken lodash nanoid\n```\n\n```shell\nyarn add @types/body-parser @types/config @types/cors @types/express @types/node @types/yup @types/pino @types/mongoose @types/bcrypt @types/jsonwebtoken @types/lodash @types/nanoid ts-node typescript -D\n```\n\n## Steps to initialize project :\n\n- Do yarn init\n- Install the dependencies\n- make a src folder and then make an app.js file in that\n- make a nodemon.json file and put the following code in it :\n\n```json\n{\n  \"restartable\": \"rs\",\n  \"ignore\": [\".git\", \"node_modules/\", \"dist/\", \"coverage/\"],\n  \"watch\": [\"src/\"],\n  \"execMap\": {\n    \"ts\": \"node -r ts-node/register\"\n  },\n  \"env\": {\n    \"NODE_ENV\": \"development\"\n  },\n  \"ext\": \"js,json,ts\"\n}\n```\n\n- Now add the following script in package.json\n\n```json\n\"scripts\": {\n        \"dev\": \"nodemon --config nodemon.json src/app.ts\"\n},\n```\n\n- Use this to start the project\n\n```shell\nyarn dev\n```\n\n- Make the following folders :\n\n1. controller : This will contain the handler functions.\n2. db : This here will contain our DB functions.\n3. logger : This will have our logger which will format our cli output.\n4. model : This will have all the schemas.\n5. service : This will contain the functions to create,modify,delete anything.\n6. middleware : This will contain the middlewares for data validation or anything.\n7. schema : This will contain all the valid schemas\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Ftypescriptserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focdbytes%2Ftypescriptserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Ftypescriptserver/lists"}