The GlobalSolutions

MERN Stack Powered by GlobalSolutions

We have installed the MERN stack which makes it easier for our customers to focus on building modern web applications rather than spending time building the stack. The MERN stack consists of four components to build an end-to-end web application: MongoDB, Express.js, React.js, and Node.js. The application involves a backend server using Node.js and Express.js, connected to a MongoDB database, and a frontend application built with React.js. MERN is one of the most popular full-stack JavaScript stacks that can be used to build scalable, production-ready web applications.

We have made sure the image is hardened so it is secured from all existing vulnerabilities.

Why Subscribe to Our Offering in AWS Marketplace

Accessing Your AMI from AWS Marketplace

To get started with your MERN stack:

  1. Subscribe: Purchase the MERN Stack AMI from the AWS Marketplace.
  2. 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.
For more information, refer to the AWS Windows Instance Connection Guide.

Installation Paths and Versions

The MERN stack is installed in standard Windows directories for easy access:

Category Packages Version Location
MongoDB Database 7.0.9 C:\Program Files\MongoDB
Node.js Server Runtime 20.13.1 C:\Program Files\nodejs

Getting Started

The MERN offering from GlobalSolutions comes pre-packaged with all the dependent components. All you have to do is subscribe to our AMI and start using it right away.

Sample MERN Application

To make getting started simple, we have deployed a sample MERN stack application located at C:\GS. The application details are:

To access the sample application you must start both the backend and the frontend servers. Always start the backend server first, wait a few seconds for it to initialize, and then start the frontend server.

Step 1 — Start the Backend Server

The backend server is programmed to start automatically whenever the instance starts or reboots. If it fails to start, click the Back_End_Server desktop icon, or run the following command from a command prompt:

C:\GS\mern-backend> node server.js

Step 2 — Start the Frontend Server

The frontend server must be started manually. Click the Front_End_Server desktop icon, or run the following command from a command prompt:

C:\GS\mern-frontend> npm start

Verifying the Application

After starting both servers, open a browser on the local EC2 machine and navigate to http://localhost:3000/ to see the sample MERN application. Add some sample data through the application interface.

To verify the data has been stored in MongoDB:

  1. Open the MongoDB Compass icon on the desktop and connect to localhost:27017.
  2. Navigate to Databases → mern_example and click on data.
  3. You will see the data you added through the application.

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.