Angular2-express-mongoose-gulp-node-typescript | AngularJS 2 Mean Stack | DB Client library
kandi X-RAY | Angular2-express-mongoose-gulp-node-typescript Summary
kandi X-RAY | Angular2-express-mongoose-gulp-node-typescript Summary
AngularJS 2 (Updated to 4.2.0) Mean Stack application which uses Angular2, Gulp, Express, Node, MongoDB (Mongoose) with Repository Pattern Business Layer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Angular2-express-mongoose-gulp-node-typescript
Angular2-express-mongoose-gulp-node-typescript Key Features
Angular2-express-mongoose-gulp-node-typescript Examples and Code Snippets
Community Discussions
Trending Discussions on Angular2-express-mongoose-gulp-node-typescript
QUESTION
I am making an application in Angular 2, the problem I encounter is the loading speed, the inspector shows me that it performs 197 requests. The url is as follows: http://www.globalmedicalhistory.com/app.html
My project starts with the following: https://github.com/moizKachwala/Angular2-express-mongoose-gulp-node-typescript
Which also has the same problem. Anyone have a solution? thank you very much!!
...ANSWER
Answered 2017-Feb-22 at 20:53First of all I am not a big fan of making single repo for backend and frontend. That said, I cannot convince many people from doing so, I am pretty sure I cannot convince you too.
Now please go to - https://github.com/AngularClass/angular2-webpack-starter and pull the frontend project. for writing your server code you can build your own script in node js using the same code of gulp serve tasks. Say you wrote your server starting code in start-server.js
And in package.json you can wrtie command "node start-server.js" inside "start" script.
I strongly suggest to develop angular2 project in separate environment than your express server. It will make your life very easy.
Also compile your app with angular2's aot compiler and then serve your build folder with express server.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Angular2-express-mongoose-gulp-node-typescript
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page