- GET Api to get All user http://ec2-3-17-146-125.us-east-2.compute.amazonaws.com:1337/register/user
- POST Api of user http://ec2-3-17-146-125.us-east-2.compute.amazonaws.com:1337/register/user
- GET http://ec2-3-17-146-125.us-east-2.compute.amazonaws.com:1337/register/users/count
In cmd prompt,steps to be followed
*ssh -i /Users/ashishgupta/Desktop/Vivek\ Sir/vrdNetworkKeyPair.pem [email protected]
* sudo su
* cd /home/ubuntu/Backend-express-with-mongo
* git pull to get the latest
* ps -ef to check the running port
* sudo kill 10234 [port number if server is running anyway]
* sudo nohup node app/server.js 80 &(to run in backgroud)
* sudo nohup node app/server.js & (to rum in the mentioned port 1337)
* For typescript project npm run start &
* https://github.com/andrewpuch/aws-ses-node-js-examples
-
check in db.js file ,db should point to the mLab database as a prod_url
-
How to run the node inspector
chrome://inspect/#devices
-
Open dedicated DevTools for Node
node --inspect app/server.js
Important link
https://nodejs.org/en/docs/guides/debugging-getting-started/#enabling-remote-debugging-scenarios
https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
https://myaccount.google.com/lesssecureapps---to remove the security for the nodemailer
* https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html
* https://aws.amazon.com/premiumsupport/knowledge-center/?icmpid=support_email_category
* https://console.developers.google.com/apis/api/plus.googleapis.com/credentials