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

A more detailed section for the folder structure #78

Closed
hongbo-miao opened this issue Apr 30, 2016 · 3 comments
Closed

A more detailed section for the folder structure #78

hongbo-miao opened this issue Apr 30, 2016 · 3 comments

Comments

@hongbo-miao
Copy link
Contributor

hongbo-miao commented Apr 30, 2016

As barbatus suggests, move original post to here.


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/

@Urigo
Copy link
Owner

Urigo commented May 15, 2016

@hongbo-miao would you be willing to PR chapter 7 to make it better?

@hongbo-miao
Copy link
Contributor Author

hongbo-miao commented May 19, 2016

@Urigo Sure, I will do it later once I think I am ready, I will write some suggestions based on both Angular 2 and Meteor official styles. Kind of combining them.

@Urigo
Copy link
Owner

Urigo commented May 20, 2016

very nice, looking forward to this

@Urigo Urigo closed this as completed Oct 30, 2016
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

2 participants