Add new REST ressources.
[Project_proches_de_moi-server.git] / README
CommitLineData
c4fba949
JB
1* Installation:
2---------------
3
4 * Symfony:
5
6We suppose the Symfony framework is already installed with the composer.
7
8$ git clone https://git.piment-noir.org/Project_proches_de_moi-server.git /path/to/apache_document_root
9$ cd /path/to/apache_document_root
10$ composer install
11$ cp .env.dist .env
12$ vi .env
13 edit the line
14 DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
15 to make it match your database installation
16$ php/console bin/console doctrine:database:create
17
18 * Apache:
19
20Virtual localhost configuration:
21
22<VirtualHost *:80>
23 ServerName domain.tld
24
25 DocumentRoot /path/to/apache_document_root/public
26 <Directory /path/to/apache_document_root/public>
27 AllowOverride None
28 Order Allow,Deny
29 Allow from All
30
31 <IfModule mod_rewrite.c>
32 Options -MultiViews
33 RewriteEngine On
34 RewriteCond %{REQUEST_FILENAME} !-f
35 RewriteRule ^(.*)$ index.php [QSA,L]
36 </IfModule>
37 </Directory>
38
39 # uncomment the following lines if you install assets as symlinks
40 # or run into problems when compiling LESS/Sass/CoffeeScript assets
41 # <Directory /path/to/apache_document_root>
42 # Options FollowSymlinks
43 # </Directory>
44
45 # optionally disable the RewriteEngine for the asset directories
46 # which will allow apache to simply reply with a 404 when files are
47 # not found instead of passing the request into the full symfony stack
48 <Directory /path/to/apache_document_root/public/bundles>
49 <IfModule mod_rewrite.c>
50 RewriteEngine Off
51 </IfModule>
52 </Directory>
53 ErrorLog ${APACHE_LOG_DIR}/domain.tld_error.log
54 CustomLog ${APACHE_LOG_DIR}/domain.tld_access.log combined
55
56 # optionally set the value of the environment variables used in the application
57 #SetEnv APP_ENV prod
58 #SetEnv APP_SECRET <app-secret-id>
59 #SetEnv DATABASE_URL "mysql://db_user:db_pass@host:3306/db_name"
60</VirtualHost>
61
62 * REST resources:
63
64Open the tests/curl.txt file for an overview.