<commit_before>
Testing Lizmap with Vagrant
===========================

To contribute to the project, and to test Lizmap, there is a configuration 
in this directory to setup a virtual machine using Vagrant. 

Here are steps:

- install [Virtual box](https://www.virtualbox.org/) and [Vagrant](http://www.vagrantup.com/downloads.html)
- copy vagrant/vars/custom.yml.dist to vagrant/vars/custom.yml and change some
  settings if needed. You can enable postgresql storage for Lizmap data, or
  enable ldap authentication for example.
- go into the vagrant/ directory (where there is the README.md file you're reading),
 launch the vagrant virtual machine:

```
cd vagrant/
vagrant up
```

It will create a virtual machine with all needed software:
postgresql, postgis, redis, nginx, php, QGIS server... 

It can take time the first time. It depends of your internet connection.

When the "Done" message appears, and if there are no errors, Lizmap is
ready. Go in `http://localhost:8130/` to see the app.<commit_msg>Warn users to use git clone not download archive<commit_after>
Testing Lizmap with Vagrant
===========================

**If you download Lizmap Web Client as an archive, vagrant directory will be empty. Use `git clone` instead.**

To contribute to the project, and to test Lizmap, there is a configuration 
in this directory to setup a virtual machine using Vagrant. 

Here are steps:

- install [Virtual box](https://www.virtualbox.org/) and [Vagrant](http://www.vagrantup.com/downloads.html)
- copy vagrant/vars/custom.yml.dist to vagrant/vars/custom.yml and change some
  settings if needed. You can enable postgresql storage for Lizmap data, or
  enable ldap authentication for example.
- go into the vagrant/ directory (where there is the README.md file you're reading),
 launch the vagrant virtual machine:

```
cd vagrant/
vagrant up
```

It will create a virtual machine with all needed software:
postgresql, postgis, redis, nginx, php, QGIS server... 

It can take time the first time. It depends of your internet connection.

When the "Done" message appears, and if there are no errors, Lizmap is
ready. Go in `http://localhost:8130/` to see the app.
{'fraction_non_alphanumeric': 0.10160919540229885, 'fraction_numerical': 0.0036781609195402297, 'mean_word_length': 4.307317073170732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3663478', 'n_tokens_mistral': 634, 'n_tokens_neox': 606, 'n_words': 291}