Huge thanks dude. I got an interesting tutorial. This is what I was looking for so many days in RUclips. Nobody haven't illustrate how to use angular universal with its own node server as back end, instead of creating a separate application for server in node with express. This is awesome. Please please create many videos like this, which are not covered by other RUclips channel.
Great content! Thank you very much. I was actually looking to long for an easy intro to this connection and you gave me the intro I dreamed for. You earned yourself a new sub. Please more of these medium length setups. TY
i wouldn't hardcode the path to node_modules in the server folder. I would just use a subscript for it. Like this: "serve-backend": "cd server && npm run serve", "serve": "concurrently \"ng serve\" \"npm run serve-backend\""
Excellent video, thank you - I was wondering if this type of app could be uploaded to Google's Firebase service - do you have any idea if this would be possible?
i saw other tutorials using a folder called dist .so what should i use ? what's the difference between using http module or using dist folder who appears to be a middlewear between node and angular ??
Hello @Digital Fluency, what a simplified video tutorial. Can you assist with this issue i cam across. while trying to run a import express and run the project, i get this error saying "@types/express/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag. i really dont know how to fix this. I have enabled both allowSyntheticDefaultImports and esModuleInterop and i still get the same error. Can you please help out.
While trying to run the commands using concurrently I get an error that says “server is not recognised as an internal or external command”. But when I run only the node server it works..It fails while running both node and angular apps.. Can anyone help me with this issue
I get this error: when running the angular app and the express application with concurrently (running just the express application works fine): (function (exports, require, module, __filename, __dirname) { import * as express from "express"; SyntaxError: Unexpected token * If I change that line to [import express from "express";], I get the following error: server/server.ts(1,8): error TS1259: Module '"/home/dev2/angular/skill-mock/server/node_modules/@types/express/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
We are back to 1950 , where it takes hours to set up a development platform, surprising that, all this for people who do not know to write simple object oriented JavaScript, it is just a matter of time before such things come crashing to the ground, otherwise excellent presentation
SyntaxError: Cannot use import statement outside a module, when I run yarn serve. Please help. I have tried adding "type": "module" to package.json didn't help
Huge thanks dude. I got an interesting tutorial. This is what I was looking for so many days in RUclips. Nobody haven't illustrate how to use angular universal with its own node server as back end, instead of creating a separate application for server in node with express. This is awesome. Please please create many videos like this, which are not covered by other RUclips channel.
Thank you Stephen. Clear explanation :)
Great content! Thank you very much. I was actually looking to long for an easy intro to this connection and you gave me the intro I dreamed for. You earned yourself a new sub. Please more of these medium length setups. TY
Thank you for this video, Stephen! I've been following your blog closely - really good stuff! Angular + Node seems to be the way to go.
i wouldn't hardcode the path to node_modules in the server folder. I would just use a subscript for it. Like this:
"serve-backend": "cd server && npm run serve",
"serve": "concurrently \"ng serve\" \"npm run serve-backend\""
thanks a lot, I had the same problem and this fixed it :)
yep, fixed it @@gokceozkan1135
Very useful tutorial 👍 Great way to create simple mock-backend fast for educational purposes 💻📚
The only tutorial that really helps me after days of looking for a solution. Thank you so so much! :D
This channel is making great quality content
Excellent video, thank you - I was wondering if this type of app could be uploaded to Google's Firebase service - do you have any idea if this would be possible?
i saw other tutorials using a folder called dist .so what should i use ? what's the difference between using http module or using dist folder who appears to be a middlewear between node and angular ??
Hello @Digital Fluency, what a simplified video tutorial. Can you assist with this issue i cam across. while trying to run a import express and run the project, i get this error saying "@types/express/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag. i really dont know how to fix this. I have enabled both allowSyntheticDefaultImports and esModuleInterop and i still get the same error. Can you please help out.
Great video dude! And what can we do for building (deploy) both angular and the server files after saving any file?
Nice video! Can you consider making the same sample but using universal and pwa? That would be a good help for everyone! Thanks!
That actually sounds awesome, would love to see that all working together in one mono repo!
[1] 'server' is not recognized as an internal or external command, HELP!!!!!!!!!!!!!!!
Help me I'm also getting same error
can i get POC of this?
because i have error in last yarn serve.error is not a project
Thank you!! Use explained it so well very clear!
While trying to run the commands using concurrently I get an error that says “server is not recognised as an internal or external command”. But when I run only the node server it works..It fails while running both node and angular apps.. Can anyone help me with this issue
Found a solution ?
I'm getting error in the middleware part.
options == req.method
I'm going in that else part !
What to do ?
can you make this tutorial with elecron js
"const app = express();" says ;"Cannot invoke an expression whose type lacks a call signature"
is there any cheap options to host node application like Php .?
One click of a button , I should have a backend and front end ready, like how it happens with ASP NET MVC5, bootstrap, jQuery ,etc etc
Stephen what changes do we have to make to the code to be able to serve our app via express server after ng build for production. Please help!!
scotch.io/tutorials/mean-app-with-angular-2-and-the-angular-cli
I get this error: when running the angular app and the express application with concurrently (running just the express application works fine):
(function (exports, require, module, __filename, __dirname) { import * as express from "express";
SyntaxError: Unexpected token *
If I change that line to [import express from "express";], I get the following error:
server/server.ts(1,8): error TS1259: Module '"/home/dev2/angular/skill-mock/server/node_modules/@types/express/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
use
const express = require ("express").
This will work... I also faced same issue
thanks
We are back to 1950 , where it takes hours to set up a development platform, surprising that, all this for people who do not know to write simple object oriented JavaScript, it is just a matter of time before such things come crashing to the ground, otherwise excellent presentation
PROS: Rich material.
CONS: Poor teaching style. I get no picture of what you're trying to achieve with each section or overall.
SyntaxError: Cannot use import statement outside a module, when I run yarn serve. Please help.
I have tried adding "type": "module" to package.json didn't help
what fixed it for me was const express = require("express") instead of import line