Can I run multiple apps in the same EC2 instance with different port and have routing implemented? I see you made a internal routing of 80 to 3000 what if i have multiple apps on 80 and to be routed to let say 3000, 3001, 3002?
there is a lot of command which is really hard to type them, if there is no source to copy them. Also i followed all steps, it giave me This site can’t be reached.
After timestamp 15:26 when you run node app.js file on ec2 instance, the console throws an error: /home/ec2-user/aws-demos/dynamic-website-basic/data.js:45 const topics = data.topics.map((topic) => ({ ^ TypeError: Cannot read properties of undefined (reading 'map') at getTopics (/home/ec2-user/aws-demos/dynamic-website-basic/data.js:45:30) at async /home/ec2-user/aws-demos/dynamic-website-basic/app.js:18:18
You have a typing error inside the file "demo/data/data-storage.json" file. Check the spelling. In my case, I wrote {"topics": []} instead of the correct {"topic": []} - without final s. Check this file. Also, make sure that you are calling instead of that opens automatically from the instance summary or directly typing the Public IP Address.
I have made a step-by-step document with code snippets for everyone to easily use with this video. Here is the google drive folder for the same: drive.google.com/drive/folders/164OQFcn_9T625HSlc5Jc7oRYmpxuLYyy
You have an error in your file. Step 6.1. should be "topics" instead of "topic." I spent an hour trying to get this to work, only to realize that it was the typo that was causing all the issues. Please update the doc ASAP.
your video taught me that a 100$ udemy course couldn't. A better way to launch instance
Great stuff, thank you!
Thank YOU!
Is your Udemy course that's mentioned at 01:17 still available? I wasn't able to find it...
Can I run multiple apps in the same EC2 instance with different port and have routing implemented? I see you made a internal routing of 80 to 3000 what if i have multiple apps on 80 and to be routed to let say 3000, 3001, 3002?
Thanks for this lovely video.
Please a quick question.
Can I connect this node server to a react app hosted with S3 buckets, route 53 & cloud front?
Getting an error below:
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: EACCES: permission denied, open '/demo/data/data-storage.json'] {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/demo/data/data-storage.json'
}
any thoughts? Thank you
this video is recommended to by Chat GPT
there is a lot of command which is really hard to type them, if there is no source to copy them. Also i followed all steps, it giave me This site can’t be reached.
i also have this error Error: listen EADDRINUSE: address already in use :::3000
After timestamp 15:26 when you run node app.js file on ec2 instance, the console throws an error:
/home/ec2-user/aws-demos/dynamic-website-basic/data.js:45
const topics = data.topics.map((topic) => ({
^
TypeError: Cannot read properties of undefined (reading 'map')
at getTopics (/home/ec2-user/aws-demos/dynamic-website-basic/data.js:45:30)
at async /home/ec2-user/aws-demos/dynamic-website-basic/app.js:18:18
You have a typing error inside the file "demo/data/data-storage.json" file. Check the spelling. In my case, I wrote {"topics": []} instead of the correct {"topic": []} - without final s. Check this file.
Also, make sure that you are calling instead of that opens automatically from the instance summary or directly typing the Public IP Address.
I have made a step-by-step document with code snippets for everyone to easily use with this video. Here is the google drive folder for the same:
drive.google.com/drive/folders/164OQFcn_9T625HSlc5Jc7oRYmpxuLYyy
So nice of you.. Thx!
You have an error in your file. Step 6.1. should be "topics" instead of "topic." I spent an hour trying to get this to work, only to realize that it was the typo that was causing all the issues. Please update the doc ASAP.
@@shashankshekhar1608 sorry about that, and I've made the changes. Thanks