DEV Community

Cover image for Create your e-commerce website for test automation using Amazon Lightsail and PrestaShop
Moataz Nabil for AWS Community Builders

Posted on

Create your e-commerce website for test automation using Amazon Lightsail and PrestaShop

For most test automation engineers, it is necessary to have a demo website in order to simulate a real website including different functions and elements.

The majority of these websites are e-commerce websites because they have different features and you can automate the whole process and placing an order and create E2E scenarios from logging in to checking out.

What is the problem?

If you start practicing with a demo website, you may find the website is down the following day or week, and you cannot continue.

Because of that, I will show you how to create your own e-commerce website using Amazon Lightstail hosted on AWS and PrestaShop.

Sounds interesting!

Let's get started 🚀

What is Amazon Lightsail?

Amazon Lightsail is the easiest way to get started with AWS for developers, small businesses, students, and other users who need a solution to build and host their websites and web applications in the cloud.

Lightsail provides developers compute, storage, and networking capacity. Lightsail includes everything you need to launch your project quickly – virtual machines, containers, databases, CDN, load balancers, DNS management etc. – for a low, predictable monthly price. - Source: Amazon Lightsail FAQs

1

To start using Lightsail, choose Get Started and log in. You use your Amazon Web Services account to access Lightsail; if you don't already have one, you'll be prompted to create one.

Create your e-commerce website

1- Login with your AWS account and from the dashboard, select Amazon Lightsail service

21

2- Click on Create an instance

3- You can change the AWS Region and Availability Zone based on your preferences

2

4- Pick your instance image in our case we will select Linux VM

3

5- Select the blueprint and in our case we will choose Prestashop from the Apps + OS

4

6- You will connect to your instance using the default SSH key or you can create a new one

5

7- There is an option for the automatic snapshot but we can leave it for now and you can enable it afterwards.

8- Select the price tier but I will leave the default one. For a limited time, new Lightsail customers can try the selected plan for free for three months andn after that you can pay only 3.5 USD. Read more about the Lightsail pricing from here

6

7- Rename the instance name to be for example MyShop and click on Create instance button

7

8- Wait till the VM status to be running

8

9- Now you can access the the VM using SSH

9

9

10- After you're connected, enter the following command to get the default application password:

cat $HOME/bitnami_application_password

Save the password because you will use it to login as an administrator

For more information you can check the start guide for PrestaShop on Amazon Lightsail

11- Now you can open the instance with the public IP

10

11

12

13

12- If you want to login as an administrator you can use the following details:

URL: http://[YOUR_PUBLIC_IP]/administration
Username: user@example.com
password: YOUR_PASSWORD

14

15

Congratulations 🥳 , you now have your own e-commerce website where you can run your test automation scripts.

What's next?

Amazon Lightsail give you the ability to create and attach a Static IP, add additional storage, create a snapshot, check the Metrics and more.

16

17

18

19

And if you don't need the VM anymore you can delete it.

20

Resources

Thanks for reading and happy testing! 🚀

Top comments (0)