[AngularJS] Re: running angular multiple apps from one folder

2017-08-04 Thread Tito
Hello, This is what I currently have. My two apps are ptcmfg and vim. app1 is point at vim and app2 is pointing at ptcmfg. the app.js for vim folder is under vim\src\server and for ptcmfg it is under ptcmfg\src\server. This is where I get cross eyed. app1.js has // app1.js var express =

Re: [AngularJS] Re: running angular multiple apps from one folder

2017-07-27 Thread Sander Elias
Hi Tito, Yes I do encourage programming following the styleguide. At least you should read the guide 2 times or more, even when you disagree with (parts) of it. Also, even while the gulp-patterns repo is a bit stale, yes it's mostly according to the style-guide. That's not a surprise as my

Re: [AngularJS] Re: running angular multiple apps from one folder

2017-07-26 Thread wax miguel
I'm > On Jul 26, 2017, at 6:21 AM, Zlatko Đurić wrote: > > Certainly! Personally I would strongly suggest separating the codebases > completely (backend is 1 repo, for now, frontend is another completely. Takes > care of so much confusing things.) > > Anyway, you need

[AngularJS] Re: running angular multiple apps from one folder

2017-07-26 Thread Tito
very interesting. so a server dedicated to serving my api. I like that and I used to do that but somewhere in the process of learning angular, I kind of got away from it for some reason. because I was thinking other applications could use the api and it is not tied to one specific application.

Re: [AngularJS] Re: running angular multiple apps from one folder

2017-07-26 Thread Tito
wow this is very thorough, thanks so much. I am using this repo as my starting point which follows what Sander Elias I think encourages which is following style guide right? https://github.com/johnpapa/gulp-patterns Thank you so very much!! On Tuesday, July 25, 2017 at 3:23:09 PM UTC-7,

[AngularJS] Re: running angular multiple apps from one folder

2017-07-25 Thread Sander Elias
Hi Tito, The advice Zlatko gave is solid. Create a separate backend/API server. keep that out of your frontend folder. Developing nowadays will give you a enormous amount of code in node_modules. For your angular project, this is totally unimportant. Once you build for staging/production,

Re: [AngularJS] Re: running angular multiple apps from one folder

2017-07-25 Thread Zlatko Đurić
Certainly! Personally I would strongly suggest separating the codebases completely (backend is 1 repo, for now, frontend is another completely. Takes care of so much confusing things.) Anyway, you need a few things set up. Like, you don't wanna let your entire node_modules/ folder public. You

[AngularJS] Re: running angular multiple apps from one folder

2017-07-25 Thread Tito
ok been a while and now I am ready to dive in. so yes I am using angular code with node.js I would also like to use same node_modules for these I do not want node_modules sprawl. Is that possible to have shared modules folder for both to use? Thanks On Wednesday, June 21, 2017 at 1:16:28 AM

[AngularJS] Re: running angular multiple apps from one folder

2017-06-21 Thread Tito
Thanks Zlatko Đurić . I think I will try the ngnix route! On Wednesday, June 21, 2017 at 1:16:28 AM UTC-7, Zlatko Đurić wrote: > > Hi Tito, > > Congratulations on your first production deployment! :) > > There are multiple ways to run multiple "apps" from one Node (express) > app. You're saying

[AngularJS] Re: running angular multiple apps from one folder

2017-06-21 Thread Zlatko Đurić
Hi Tito, Congratulations on your first production deployment! :) There are multiple ways to run multiple "apps" from one Node (express) app. You're saying Angular apps, but it seems like Node.js is involved too, so I'll try to address some cases. If you have one very specific TL;DR: - if

[AngularJS] Re: running angular multiple apps from one folder

2017-06-20 Thread Tito
Greetings Sander, So, how do I do that any write up or reads you recommend. It is windows server. I cannot see myself opening 15 different node js command prompts and running npm start and different ports :) Thanks! On Tuesday, June 20, 2017 at 8:02:33 AM UTC-7, Sander Elias wrote: > > Hi

[AngularJS] Re: running angular multiple apps from one folder

2017-06-20 Thread Sander Elias
Hi Tito, You can host as many apps as you like on a node server. I would put in authorization anyway, but you can share that among apps. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from