{"id":24986880,"url":"https://github.com/trackableentities/observableentities.core.templates.typescript","last_synced_at":"2025-03-29T10:47:10.689Z","repository":{"id":83542897,"uuid":"193788199","full_name":"TrackableEntities/ObservableEntities.Core.Templates.TypeScript","owner":"TrackableEntities","description":"Handlebars templates for EF Core scaffolding to generate client-side TypeScript observable entities.","archived":false,"fork":false,"pushed_at":"2019-06-25T22:03:09.000Z","size":1765,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T11:43:32.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/TrackableEntities.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-25T21:52:06.000Z","updated_at":"2019-06-25T22:09:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"767d315d-30f2-45d0-b47f-209231e1735c","html_url":"https://github.com/TrackableEntities/ObservableEntities.Core.Templates.TypeScript","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackableEntities%2FObservableEntities.Core.Templates.TypeScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackableEntities%2FObservableEntities.Core.Templates.TypeScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackableEntities%2FObservableEntities.Core.Templates.TypeScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrackableEntities%2FObservableEntities.Core.Templates.TypeScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrackableEntities","download_url":"https://codeload.github.com/TrackableEntities/ObservableEntities.Core.Templates.TypeScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174539,"owners_count":20735413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-02-04T11:33:03.819Z","updated_at":"2025-03-29T10:47:10.683Z","avatar_url":"https://github.com/TrackableEntities.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Observable Entities for EF Core TypeScript Handlebars Templates\n\nHandlebars templates for EF Core scaffolding to generate client-side TypeScript observable entities. See [observable-entities-js](https://github.com/TrackableEntities/observable-entities-js) and [EntityFrameworkCore.Scaffolding.Handlebars](https://github.com/ObservableEntities/EntityFrameworkCore.Scaffolding.Handlebars).\n\n\u003e Blog post: [React to JavaScript object updates with observable-entities-js](https://blog.tonysneed.com/2017/09/21/react-to-javascript-object-updates-with-observable-entities-js/)\n\n## Usage\n\n1. Install **Observable Entities for EF Core TypeScript Handlebars Templates**.\n\n    ```\n    dotnet new -i ObservableEntities.Core.Templates.TypeScript\n    ```\n\n2. Create a **.NET Core Class Library** project.\n3. Add Observable Entities Handlebars templates from the project folder.\n\n    ```\n    dotnet new oe-templates-typescript\n    ```\n\n4. Add the following NuGet packages to the project.\n   - Microsoft.EntityFrameworkCore.Design\n   - Microsoft.EntityFrameworkCore.SqlServer\n   - EntityFrameworkCore.Scaffolding.Handlebars\n\n5.  Add a `ScaffoldingDesignTimeServices` class that implements `IDesignTimeServices`\n\n    ```csharp\n    public class ScaffoldingDesignTimeServices : IDesignTimeServices\n    {\n        public void ConfigureDesignTimeServices(IServiceCollection services)\n        {\n            // Add Handlebars scaffolding templates\n            services.AddHandlebarsScaffolding(ReverseEngineerOptions.EntitiesOnly, LanguageOptions.TypeScript);\n        }\n    }\n    ```\n\n6. From the command-prompt execute the following:\n   - Be sure to create the NorthwindSlim database in SQL Local DB, \n     then run the script from bit.ly/northwindslim.\n\n    ```\n    dotnet ef dbcontext scaffold \"Data Source=(localdb)\\MSSQLLocalDB; Initial Catalog=NorthwindSlim; Integrated Security=True\" Microsoft.EntityFrameworkCore.SqlServer -o Models -f\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackableentities%2Fobservableentities.core.templates.typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrackableentities%2Fobservableentities.core.templates.typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackableentities%2Fobservableentities.core.templates.typescript/lists"}