Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
You've got most of the pieces, but went wrong in a couple places.
Using AWS(ec2) makes this a little more complicated. Your fist step should be to get a "hello world" node app running(there should be listen function in your Node server code) on AWS and successfuly pull up the app in your browsers. If you are new to AWS, this can take some time to figure out Once you get here, I think you will see how to change your code above.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
I just installed Node JS on my ec2 instance (server) using the following site...http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/
I followed the instructions and I believe I downloaded it all properly, now I am trying to implement Node, but I do not think I am doing it right. I tried tutorialspoint.com but still cannot get it to work.
Basically I am using AJAX when a button is clicked, which in turn calls my node file...
and my node js file looks like this...
I am not using any of the
POSTdata as referenced in my AJAX, I am simply using AJAX to call the code written in mysignupServer.js.The node js file above simply writes
"Hey there!"to a file called test located at/var/www/html/uploads/test, but I cannot get it to work. I don't think anything is happening when the buttonsavePicis clicked. Am I using node wrong here?