<commit_before>laclef-webapp
==============

This is a PHP+MySQL web application for the management of users, devices, door locks, payments, RFID tags.

![laclef webapp](http://laclef.cc/templates/images/arch_en_US.svg)

Debian Installation
-------------------

1. [Install a LAMP server](http://wiki.debian.org/LaMp)
2. [Fork this repo](https://help.github.com/articles/fork-a-repo) 
3. Clone it to your /var/www/ directory
4. Import the database by using this command (please use [this SQL dump](https://raw.github.com/bgaultier/laclef-webapp/master/laclef-webapp.sql)): `$ mysql -u <your_username> -p <your_password> <your_database_name> < laclef-webapp.sql`
5. Modify [settings.php](settings.php) according to your MySQL configuration
6. Fire up your web browser and go to http://localhost/login (login : admin, password : <PASSWORD>)
7. Enjoy a freshly-brewed coffee !

Raspberry Pi guide
------------------
1. [Install a fresh Raspian on your Pi](http://www.raspberrypi.org/downloads)
2. Insert the SD card in your Pi and plug it up
3. Fire up your terminal : `ssh pi@<your_ip_address>` (Default password : <PASSWORD>)
4. Once you are logged in, configure the pi : `sudo raspi-config`
5. Upgrade your distro and install the following tools : `sudo su` then `apt-get update && apt-get upgrade`
6. You have time for a coffee break since the upgrade can take a looonnnggg time
7. Install a LAMP server : `apt-get install apache2 php5 mysql-client mysql-server avahi-daemon php5-curl php5-mysql libapache2-mod-php5`
8. 



License
-------

The code is released under The Affero General Public License version 3.
http://www.gnu.org/licenses/agpl-3.0.en.html
<commit_msg>Installation guide for Raspberry Pi ok<commit_after>laclef-webapp
==============

This is a PHP+MySQL web application for the management of users, devices, door locks, payments, RFID tags.

![laclef webapp](http://laclef.cc/templates/images/arch_en_US.svg)

Debian Installation
-------------------

1. [Install a LAMP server](http://wiki.debian.org/LaMp)
2. [Fork this repo](https://help.github.com/articles/fork-a-repo) 
3. Clone it to your /var/www/ directory
4. Import the database by using this command (please use [this SQL dump](https://raw.github.com/bgaultier/laclef-webapp/master/laclef-webapp.sql)): `$ mysql -u <your_username> -p <your_password> <your_database_name> < laclef-webapp.sql`
5. Modify [settings.php](settings.php) according to your MySQL configuration
6. Fire up your web browser and go to http://localhost/login (login : admin, password : <PASSWORD>)
7. Enjoy a freshly-brewed coffee !

Raspberry Pi guide
------------------
1. [Install a fresh Raspian on your Pi](http://www.raspberrypi.org/downloads)
2. Insert the SD card in your Pi and plug it up
3. Fire up your terminal : `ssh pi@<your_ip_address>` (Default password : <PASSWORD>)
4. Once you are logged in, configure the pi : `sudo raspi-config`
5. Upgrade your distro and install the following tools : `sudo su` then `apt-get update && apt-get upgrade`
6. You have time for a coffee break since the upgrade can take a looonnnggg time
7. Install a LAMP server : `apt-get install apache2 php5 mysql-client mysql-server avahi-daemon php5-curl php5-mysql libapache2-mod-php5`
8. Modify [settings.php](settings.php) like so :

```php
	// MySQL server credentials
  $host = "localhost";
  $username = "pi";
  $password = "<PASSWORD>";
  $database = "laclef";
```

9. Fire up your web browser and go to http://raspberrypi.local/login (login : admin, password : <PASSWORD>)
10. Enjoy a cup of tea (since you took a coffee on step 6 :)
11. If laclef is not working as expected, please consider the use of [this tracker](https://github.com/bgaultier/laclef-webapp/issues). This issue tracker is meant for bug repports and requests for improvements.

License
-------

The code is released under The Affero General Public License version 3.
http://www.gnu.org/licenses/agpl-3.0.en.html

{'fraction_non_alphanumeric': 0.13594704684317718, 'fraction_numerical': 0.01374745417515275, 'mean_word_length': 3.832718327183272, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 5, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1706766', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1221, 'n_words': 458}