Web frontend developed for The Law Factory project: http://www.LaFabriqueDeLaLoi.fr
Data backend API code is available on repository https://github.com/RegardsCitoyens/the-law-factory-parser
-
Checkout the project from git:
git clone https://github.com/regardscitoyens/the-law-factory.git cd the-law-factory
-
Configure the aplication by copying
public/config.js.example
aspublic/config.js
and set the API Url to the path on which you serve the data directory of RegardsCitoyens:the-law-factory-parser.git. Optionnally set also there your google analytics id and host.cp public/config.js{.example,} vi public/config.js
-
Serve the
public
directory on a webserver
- for instance, to run locally on http://localhost:8001
cd public
python -m SimpleHTTPServer 8001
A sample Apache configuration is given in the conf
directory.
To reduce browser request counts per page, you may build a production version that uses concatenated versions of scripts and stylesheets by running make
and make install
from the repository root. In this case you will want to serve the prod
directory instead.
Notes:
- if you haven't created
public/config.js
yet, it will be copied frompublic/config.js.example
- you have to run
make
andmake install
again if you make any changes to thepublic/config.js
file - you may run
make clean
to return the tree to its original, fresh-from-git-repository state, but leaves theprod
directory.
This work is supported by a public grant overseen by the French National Research Agency (ANR) as part of the "Investissements d'Avenir" program within the framework of the LIEPP center of excellence (ANR11LABX0091, ANR 11 IDEX000502).