Relative Content

Tag Archive for javascripthtmlnode.js

Connection from DB to HTML

<body> <div class=”main-body”> <div class=”hotel-block”> <img src=”https://i2.photo.2gis.com/images/branch/0/30258560076741797_1cd9.jpg” alt=”” class=”hotel-1″> <h2></h2> <p class=”chertochka”></p> <h2></h2> <a class=”click-btn btn-style2″ href=”./contact.html”>List</a> </div> <div class=”hotel-block”> <img src=”https://avatars.dzeninfra.ru/get-zen_doc/2404797/pub_5ec05dabc419064bb24dcdcb_5ec07408d54088764522e780/scale_1200″ alt=”” class=”hotel-1″> <h2></h2> <p class=”chertochka”></p> <h2></h2> <a class=”click-btn btn-style2″ href=”./contact.html”>List</a> </div> <div class=”hotel-block”> <img src=”https://www.worldrainbowhotels.com/wp-content/uploads/2019/05/Crown-Metropol-Perth.jpg” alt=”” class=”hotel-1″> <h2></h2> <p class=”chertochka”></p> <h2></h2> <a class=”click-btn btn-style2″ href=”./contact.html”>List</a> </div> <div class=”hotel-block”> <img src=”https://alanya-invest.ru/upload/iblock/6e4/6e43b827a3ff50d381f95697957f30b5.jpg” alt=”” class=”hotel-1″> <h2></h2> […]

How to connect backend node.js code to mysql database through aws

I am tasked with hosting a website for a class. I need to run client, webserver, and database from three separate nodes as a requirement of the class. I have setup an aws instance and connected it to my vs code through ssh. The issue I am having is when I run node backend.js to establish the connection to the MySQL database it fails one way or another. I am stuck and not sure where to go from here, so any help is appreciated.