Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add a more detailed section for the folder structure #148

Closed
hongbo-miao opened this issue Feb 12, 2016 · 3 comments
Closed

Please add a more detailed section for the folder structure #148

hongbo-miao opened this issue Feb 12, 2016 · 3 comments

Comments

@hongbo-miao
Copy link
Contributor

Right now the Step 7 - Folder structure for actual file structure does not describe too much, only says "server" and "client" from meteor side in general.

But if the project it big, what would the folder structure look like from angular2-meteor side?

For client part:

client/
----- styles/
---------- main.css
----- lib/
---------- calendar.pipe.ts
---------- truncate.pipe.ts
----- services/
---------- alert.service.ts
----- components/
---------- home/
--------------- home.component.ts
--------------- home.component.html
--------------- home.component.css
--------------- home.service.ts
---------- about/
--------------- about.component.ts
--------------- about.component.html
--------------- about.component.css
--------------- about.service.ts
----- app.ts

or

client/
----- styles/
---------- main.css
----- lib/
---------- calendar.pipe.ts
---------- truncate.pipe.ts
----- services/
---------- alert.service.ts
----- home/
---------- components/
--------------- home.component.ts
--------------- home.component.html
--------------- home.component.css
--------------- home.service.ts
----- about/
---------- components/
--------------- about.component.ts
--------------- about.component.html
--------------- about.component.css
--------------- about.service.ts
----- app.ts

or something else.
Also, right now socially does not have services, if it has, where it should be.

For other parts:

server/
----- main.ts
collections/
----- methods.ts
public/
----- img/

Some sources:
https://github.com/mgechev/angular2-seed
https://scotch.io/tutorials/angularjs-best-practices-directory-structure
http://meteortips.com/first-meteor-tutorial/structure/

@u0m3
Copy link

u0m3 commented Apr 1, 2016

There is also a style guide by John Papa https://github.com/johnpapa/angular-styleguide/blob/master/a2/README.md

@barbatus
Copy link
Collaborator

barbatus commented Apr 30, 2016

@hongbo-miao Can you pls move it here https://github.com/Urigo/angular-meteor-docs?
And this one #147 too.

@hongbo-miao
Copy link
Contributor Author

Sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants