You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Demo Service (`/client/imports/demo/demo-data.service`)
44
-
- Demo Mongo Collection (`/both/demo.collection.ts`) with a TypeScript interface as model.
45
-
46
-
The Main component loads the child component, which uses the demo service that gets it's data from the demo collection.
47
36
48
37
### Folder Structure
49
38
50
39
The 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).
51
40
52
41
### Client
53
42
54
-
The `client` folder contains single TypeScript (`.ts`) file which is the main file (`/client/app.component.ts`), and bootstrap's the Angular 2 application.
43
+
The `client` folder contains single TypeScript (`.ts`) file which is the main file (`/client/app.component.ts`), and bootstrap's the Angular application.
55
44
56
45
The main component uses HTML template and SASS file.
57
46
@@ -74,8 +63,3 @@ Example for common files in our app, is the MongoDB collection we create - it lo
74
63
75
64
The 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.
76
65
77
-
There is a main test file that initialize Angular 2 tests library, it located under `/client/init.test.ts`.
78
-
79
-
All other test files are located near the component/service it tests, with the `.test.ts` extension.
80
-
81
-
The `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.
0 commit comments