Go to file
Michel Roux 825d9c8e02 First commit 2016-05-29 14:43:43 +02:00
controllers First commit 2016-05-29 14:43:43 +02:00
lib First commit 2016-05-29 14:43:43 +02:00
models First commit 2016-05-29 14:43:43 +02:00
views First commit 2016-05-29 14:43:43 +02:00
.gitignore First commit 2016-05-29 14:43:43 +02:00
.htaccess First commit 2016-05-29 14:43:43 +02:00
README.md First commit 2016-05-29 14:43:43 +02:00
db.csv First commit 2016-05-29 14:43:43 +02:00
index.php First commit 2016-05-29 14:43:43 +02:00

README.md

Hardis

Config for webservers

Apache2

DocumentRoot "/var/www/html"
<Directory "/var/www/html">
    Options -Indexes +FollowSymLinks +Includes
    AllowOverride All
    Order allow,deny
    Allow from All
</Directory>

Apache must have mod_rewrite enabled !

Nginx

server {
    root /var/www/html;
    location / {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php?$query_string;
    }
    location ~ \.php$ {
        fastcgi_pass ip_address:port;
        include fastcgi_params;
    }
}

Notes

This project is based on Fat Free Framework (F3).

You have to have a /tmp folder with chmod 777. This folder store cached files for the F3's template generator

Urls

  • / => Test page
  • /api/member => List all members
  • /api/member/identifiant or /api/member?identifiant= => List a member by id