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-20 19:43:14 +02:00
.vscode Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
src Migrate to latest Svelte Kit. 2022-08-20 19:36:21 +02:00
static Add UI for articles. 2022-08-10 17:50:13 +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 Add UI for articles. 2022-08-10 17:50:13 +02:00
LICENSE.md Improve configuration & README. Add license. 2022-08-09 11:15:42 +02:00
package-lock.json Use @sveltejs/package. 2022-08-20 19:43:14 +02:00
package.json Use @sveltejs/package. 2022-08-20 19:43:14 +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 Change prettier configuration. 2022-08-09 10:44:30 +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