> For the complete documentation index, see [llms.txt](https://hov-qa.gitbook.io/hov-qa-engineers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hov-qa.gitbook.io/hov-qa-engineers/projects/identifi/web-automation/web-automation-setup/setup-local-environment-linux-ubuntu.md).

# Setup local Environment (Linux/Ubuntu)

1. **Add ssh key** -<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent>
2. **Install docker** -<https://docs.docker.com/engine/install/fedora/> -<https://computingforgeeks.com/how-to-install-docker-on-fedora/>
3. **Type on terminal**
   1. ```
      sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
      sudo chmod +x /usr/local/bin/docker-compose
      ```
4. **Install AWS** -<https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html>
5. **Configure AWS**

   1. **Type**
      1. aws configure
      2. Access key ID ( Ask for DEVS the ID is different from other projects) - \[sample id] - AKIA6ML6BIUKZKFNY6NX
      3. Secret access key: EcAqufe+UJFHlmi1SQpeuHF+ajvJUR1VskbnZxmA
      4. Location - us-east-1
      5. File type - json

   **access key**: AKIAR73M5IQAJDI7TGPN\
   **secret key**: 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\
   **region**: ap-southeast-1\
   **output**: json
6. Install [nvm](https://github.com/nvm-sh/nvm)
7. Type “npm install” inside \[name of the folder]

#### **Running the docker:**

There are instances that the docker won’t automatically run if you won’t type this command:

```
sudo systemctl start docker
```

Login the AWS: \[sample code, get aws credentials to devOps]

```
aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 138130503029.dkr.ecr.ap-southeast-1.amazonaws.com
```

```
docker-compose down
docker-compose up -d
docker container ls
docker container logs xxxxxx -f (container id of web)
```
