2

I am working on Web app that analyze public transportation in real-time. I build an interactive map dashboard. I use : - Node.Js: for backend processing. - Angularjs & Leaflet: to work on the front end data visualization.

I'd like reorganize my project, but I couldn't find a convenient structure. I took a look at angular-seed, the official starting point for AngularJS apps. The "app" directory contains the following structure:

css/
img/
js/
   app.js
   controllers.js
   directives.js
   filters.js
   services.js
lib/
partials/ 

Another structuring found on [ng-boilerplate][1] repo

build/
src/
app/
assets/
components/
less/
testacular/ (or karma/)
vendor/
    Grunfile.js
    module.prefix
    module.suffix
    package.json

I found this Angular Leaflet App Skeleton, it could be a good start, but how can I add Node.Js I found also two great articles :

Do you recommend using angular-leaflet-directive and Node.js, or build Angularjs/Leaflet/Node.js project ?

What is the best way to structure my project in this case ?

1

1 Answer 1

2

It may be better to not have Angular and NodeJS code in the same project. Let your NodeJS project be a pure JSON API. The Angular project can be a client project.

You can serve the Angular code from an Apache or CGI server and run your Express server for the NodeJS.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.