# 02 - Copy or update repository sources

The sources are available on the Github (a code repository web server)

once your Visual Studio is launched, go to your Terminal and type

```shell
git clone https://github.com/xlyric/pv-router-esp32.git
```

it will then clone the repository on your machine and you can adapt the code to your needs and upload it.

[![image-1648136080114.png](https://pvrouteur.apper-solaire.org/uploads/images/gallery/2022-03/scaled-1680-/image-1648136080114.png)](https://pvrouteur.apper-solaire.org/uploads/images/gallery/2022-03/image-1648136080114.png)

you can then go to the directory created during the command

[![image-1648136251752.png](https://pvrouteur.apper-solaire.org/uploads/images/gallery/2022-03/scaled-1680-/image-1648136251752.png)](https://pvrouteur.apper-solaire.org/uploads/images/gallery/2022-03/image-1648136251752.png)

In the case of an update, you can update your code again with the following command

```shell
git pull
```

[![image-1648136329142.png](https://pvrouteur.apper-solaire.org/uploads/images/gallery/2022-03/scaled-1680-/image-1648136329142.png)](https://pvrouteur.apper-solaire.org/uploads/images/gallery/2022-03/image-1648136329142.png)

#### Default configuration

If you want to keep the router in access point mode, you don't have to do anything, just upload the code.

If you want to use it on your wifi network, you have to configure 1 file to operate the Router  
In the Data directory which contains the HTML pages, you must rename the file wifi.json.ori  
in wifi.json and enter the connection parameters of your internet box