Node JS with MySQL Powered by GlobalSolutions
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. It also provides a rich library of various JavaScript modules which simplifies the development of web applications to a great extent.
Node.js is a cross-platform runtime environment for developing server-side and networking applications. Node.js library is very fast in code execution and uses a single-threaded program, allowing the same program to serve a much larger number of requests than traditional servers like Apache HTTP Server. Node.js applications never buffer any data. We have also added phpMyAdmin which allows you to manage your databases easily.
Accessing Your AMI from AWS Marketplace
To get started with your Node JS stack:
- Subscribe: Purchase the Node JS AMI from the AWS Marketplace.
- Connect via RDP:
- In the AWS Console, select your launched instance and click Connect.
- Choose RDP Client, upload your .pem key file, and decrypt the password using your private key.
- Download the .rdp file and connect using the username Administrator and the decrypted password.
Installation Paths and Versions
The Node JS stack is installed in standard Windows directories for easy access:
| Category | Packages | Version | Location |
|---|---|---|---|
| RDBMS | MySQL | 8.0.46 | C:\Program Files\MySQL |
| Server | NodeJS | 24.15.0 | C:\Program Files\nodejs |
| PHP | PHP | 8.5.5 | C:\PHP |
MySQL and phpMyAdmin Credentials
| Username | Password |
|---|---|
| root | global |
Important: Change these default credentials immediately after initial login for security.
Sample Programs
We have the following sample programs under C:\helloWorld:
- hello.js — a simple program which starts as a web server. You can run it in the following ways:
- Launch the node.bat icon on the desktop to start Node.js.
- This will run the application in the foreground. Verify it is running by opening a browser and pointing to
http://127.0.0.1:80— you will see an output.
- You can make the process run in the background using pm2 or Nodemon — both are already installed on the server:
C:\helloworld> nodemon hello.jsC:\helloworld> pm2 start hello.js --watch
MySQL Database Connection
We have created a sample program to check the MySQL database connection, located under C:\helloworld. Run the following command to test the connection:
C:\helloworld> node db_connections.js
AWS Cost Optimizer — CloudInsider
Our other popular offering is the AWS Cost Optimizer aka CloudInsider, available in AWS Marketplace. This service has helped our customers save significantly on AWS and other cloud spending. It is easy to subscribe and you can see the savings in minutes.
▶ Watch Demo Video Subscribe on AWS Marketplace
Support
For any questions or assistance with our AWS Marketplace offering, reach out to us at support@theglobalsolutions.net.