Library, Web API & site to browse Légifrance legal open data from French Direction de l'information légale et administrative (Dila)
Find a file
2022-08-26 18:11:52 +02:00
.vscode Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
src Sort natures. 2022-08-26 18:11:52 +02:00
static Use hero from @tricoteuses/explorer-tools. 2022-08-21 18:39:27 +02:00
tests Change prettier configuration. 2022-08-09 10:44:30 +02:00
.eslintignore npm create svelte@latest tricoteuses-legal 2022-08-09 10:21:38 +02:00
.eslintrc.cjs Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
.gitignore Add script to import LEGI database. 2022-08-09 19:47:51 +02:00
.npmrc npm create svelte@latest tricoteuses-legal 2022-08-09 10:21:38 +02:00
.prettierignore Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
example.env Use hero from @tricoteuses/explorer-tools. 2022-08-21 18:39:27 +02:00
LICENSE.md Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
package-lock.json Use API instead of sharing code with doers. 2022-08-25 17:12:12 +02:00
package.json Use API instead of sharing code with doers. 2022-08-25 17:12:12 +02:00
playwright.config.ts Change prettier configuration. 2022-08-09 10:44:30 +02:00
postcss.config.cjs Change prettier configuration. 2022-08-09 10:44:30 +02:00
prettier.config.cjs Change prettier configuration. 2022-08-09 10:44:30 +02:00
README.md Add link to documentation. 2022-08-14 09:04:16 +02:00
svelte.config.js Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
tailwind.config.cjs Migrate to latest Svelte Kit. 2022-08-20 19:36:21 +02:00
tsconfig.json Change prettier configuration. 2022-08-09 10:44:30 +02:00
vite.config.js Add search API. Improve summaries. 2022-08-23 18:05:19 +02:00

Tricoteuses Legal Explorer

Tricoteuses Legal Explorer is free and open source software.

Legal data sources:

Main definitions used by these data: https://www.legifrance.gouv.fr/contenu/Media/files/lexique-api-lgf.docx

Installation

Create database

Using Debian GNU/Linux, install PostgreSQL, then:

sudo su - postgres
createuser legi -P # and enter the password
createdb -O legi legi
psql legi
  CREATE EXTENSION IF NOT EXISTS pg_trgm;
\q
exit

Install dependencies

npm install

Server Configuration

Create a .env file to set configuration variables (you can use example.env as a template). Then:

npm run package
npm run configure

Server Launch

In development mode:

npm run dev

In production mode:

npm run build
npm run preview