{"id":24746587,"url":"https://github.com/samuelmarks/waterline_scaffold","last_synced_at":"2026-04-02T01:02:55.401Z","repository":{"id":150265510,"uuid":"43000119","full_name":"SamuelMarks/waterline_scaffold","owner":"SamuelMarks","description":"Testing a waterline+TypeScript scaffold","archived":false,"fork":false,"pushed_at":"2015-11-03T04:11:58.000Z","size":192,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T16:24:42.410Z","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/SamuelMarks.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":"2015-09-23T12:41:59.000Z","updated_at":"2020-09-12T20:42:31.000Z","dependencies_parsed_at":"2023-04-11T21:04:28.695Z","dependency_job_id":null,"html_url":"https://github.com/SamuelMarks/waterline_scaffold","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SamuelMarks/waterline_scaffold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwaterline_scaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwaterline_scaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwaterline_scaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwaterline_scaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/waterline_scaffold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwaterline_scaffold/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":[],"created_at":"2025-01-28T04:29:29.587Z","updated_at":"2026-04-02T01:02:55.007Z","avatar_url":"https://github.com/SamuelMarks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"waterline_scaffold\n==================\n\nSimple baseline scaffold to get you started using Waterline with TypeScript.\n\n\n## Install prerequisites\n\n  0. node \u0026 npm (tested with node v4 and npm v3.3.4 on Ubuntu 15.04 x64)\n  1. Run: `npm install -g tsd typescript`\n  2. `cd` to directory you've cloned this repo into\n  3. Run: `npm install`\n  4. Run: `tsd install`\n\n## Compile+run app\n\n    tsc --sourcemap --module commonjs db.ts \u0026\u0026 npm start\n\n## Generate TypeScript definitions from Model\nExample with \"models/TUser.js\", contains two variables `FFOOOOOOOOOOOOOOOOOOOO` and `BARRRRRR` containing:\n\n```typescript\n{\n    identity: 'user_tbl',\n    connection: 'postgres',\n    attributes: {\n        email: {\n            type: 'string',\n            required: true\n        },\n        password: {\n            type: 'string',\n            required: false\n        },\n        name: {\n            type: 'string'\n        }\n    }\n};\n```\n\nGenerating the interfaces; extending with `waterline.Record, waterline.Model`:\n\n    tsc --sourcemap --module commonjs codegen/model_to_def.ts\n    node codegen/model_to_def.js models/TUser.js 'extends waterline.Record, waterline.Model'\n\nWill create file \"models/TUser.d.ts\" containing:\n\n```typescript\nexport interface FFOOOOOOOOOOOOOOOOOOOO extends waterline.Record, waterline.Model {\n    email: string;\n    password?: string;\n    name?: string;\n}\n\nexport interface BARRRRRR extends waterline.Record, waterline.Model {\n    email: string;\n    password?: string;\n    name?: string;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fwaterline_scaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fwaterline_scaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fwaterline_scaffold/lists"}