{"id":18820670,"url":"https://github.com/valentinfunk/new-version-test","last_synced_at":"2026-01-17T16:30:18.183Z","repository":{"id":76050656,"uuid":"65673074","full_name":"ValentinFunk/new-version-test","owner":"ValentinFunk","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-14T15:31:10.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T03:27:29.756Z","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/ValentinFunk.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-14T15:30:57.000Z","updated_at":"2016-08-14T15:31:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"34c4a564-ec65-4bd2-b0e0-6bbb909d3d0a","html_url":"https://github.com/ValentinFunk/new-version-test","commit_stats":null,"previous_names":["valentinfunk/new-version-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinFunk%2Fnew-version-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinFunk%2Fnew-version-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinFunk%2Fnew-version-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinFunk%2Fnew-version-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ValentinFunk","download_url":"https://codeload.github.com/ValentinFunk/new-version-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758832,"owners_count":19692034,"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":"2024-11-08T00:29:28.130Z","updated_at":"2026-01-17T16:30:16.088Z","avatar_url":"https://github.com/ValentinFunk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular2-Meteor-Base Tutorial\n\n## Usage\n\nSince Meteor v1.4 you can use one command to create a working Angular2 app based on this boilerplate:\n\n```\nmeteor create --example angular2-boilerplate\n```\n\n## Boilerplate Contents\n\nThis boilerplate contains the basics that requires to quick start with Angular2-Meteor application.\n\nThis package contains:\n\n- TypeScript support and Angular 2 compilers for Meteor\n- Angular2-Meteor\n- Angular2 (core, common, compiler, platform)\n- SASS support\n- Testing framework with Mocha and Chai\n\nThis application also contains demo code:\n\n- Main Component (`/client/app.component`)\n- Demo Child Component (`/client/imports/demo/demo.component`)\n- Demo Service (`/client/imports/demo/demo-data.service`)\n- Demo Mongo Collection (`/both/demo-collection.ts`)\n\nThe Main component loads the child component, which uses the demo service that gets it's data from the demo collection.\n\n## Folder Structure\n\nThe folder structure is a mix between [Angular 2 recommendation](https://johnpapa.net/angular-2-styles/) and [Meteor 1.3 recommendation](https://guide.meteor.com/structure.html).\n\n#### Client\n\nThe `client` folder contains single TypeScript (`.ts`) file which is the main file (`/client/app.component.ts`), and bootstrap's the Angular 2 application.\n\nThe main component uses HTML template and SASS file.\n\nThe `index.html` file is the main HTML which loads the application by using the main component selector (`\u003capp\u003e`).\n\nAll the other client files are under `client/imports` and organized by the context of the components (in our example, the context is `demo`).\n\n\n#### Server\n\nThe `server` folder contain single TypeScript (`.ts`) file which is the main file (`/server/main.ts`), and creates the main server instance, and the starts it.\n\nAll other server files should be located under `/server/imports`.\n\n#### Common\n\nExample for common files in our app, is the MongoDB collection we create - it located under `/both/demo-collection.ts` and it can be imported from both client and server code.\n\n## Testing\n\nThe testing environment in this boilerplate based on [Meteor recommendation](https://guide.meteor.com/testing.html), and uses Mocha as testing framework along with Chai for assertion.\n\nThere is a main test file that initialize Angular 2 tests library, it located under `/client/init.test.ts`.\n\nAll other test files are located near the component/service it tests, with the `.test.ts` extension.\n\nThe `DemoComponent` contains example for Angular 2 tests for Component, and in the server side there is an example for testing Meteor collections and stub data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentinfunk%2Fnew-version-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalentinfunk%2Fnew-version-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentinfunk%2Fnew-version-test/lists"}