Running the Internet application locally or with Docker
Moataz Nabil
Author of 'Mobile DevOps Playbook' | Software Engineering Manager, Platform Engineering | AWS Community Builder | Developer Advocate
The internet application is a practical web application powered by Elemental Selenium for writing automated acceptance tests against.
If you want to run the application locally or using Docker in your local machine you can use the following steps:
Pre-requests:
You need to install the following tools:
- Ruby
- Git
- Docker
Steps to run the app locally without Docker from the Terminal (Command line):
1- Clone the repository from Github using the following command :
git clone https://github.com/tourdedave/the-internet.git
2- Goto the project folder using the following command:
cd the-internet
3- Install your dependencies using the following command:
bundle install
Note: if you got an error with your ruby version like this one:
Your Ruby version is 2.6.4, but your Gemfile specified 2.3.7
You can update the ruby version in the project from the Gemfile to your ruby version and run bundle install again
4- Start the server using the following command:
bundle exec rackup
You can now open the following link: https://localhost:9292/
Steps to run the app locally with Docker:
Docker must be installed in your machine
- Run the following command:
docker run -d -p 7080:5000 gprestes/the-internet
- Open your browser with this link https://localhost:7080
Good luck and Happy Testing!