@tricoteuses/tisseuse 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +36 -1
- package/dist/index.js +1584 -1211
- package/dist/lib/index.d.ts +5 -4
- package/dist/lib/json.d.ts +6 -0
- package/dist/lib/server/config.d.ts +11 -14
- package/dist/lib/server/databases/index.d.ts +20 -2
- package/dist/lib/server/databases/tisseuse.d.ts +1 -0
- package/dist/lib/server/text_links.d.ts +1 -38
- package/dist/lib/text_parsers/ast.d.ts +8 -3
- package/dist/lib/text_parsers/dates.d.ts +4 -0
- package/dist/lib/text_parsers/divisions.d.ts +1 -2
- package/dist/lib/text_parsers/helpers.d.ts +2 -1
- package/dist/lib/text_parsers/index.d.ts +2 -1
- package/dist/lib/text_parsers/text_links.d.ts +50 -0
- package/dist/lib/text_parsers/text_titles_infos.json.d.ts +1 -1217
- package/dist/lib/text_parsers/texts.d.ts +8 -0
- package/dist/scripts/add_links_to_legifrance.d.ts +1 -0
- package/dist/scripts/configure.d.ts +1 -0
- package/dist/scripts/extract_jos_infos.d.ts +1 -0
- package/package.json +5 -3
- package/dist/lib/strings.d.ts +0 -1
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Tricoteuses Tisseuse
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
_Find links in/to French legislative documents_
|
|
4
|
+
|
|
5
|
+
_Tricoteuses Tisseuse is free and open source software.
|
|
6
|
+
|
|
7
|
+
- [software repository](https://git.tricoteuses.fr/logiciels/tricoteuses-juridique/src/branch/main/packages/tisseuse)
|
|
8
|
+
- [GNU Affero General Public License version 3 or greater](https://git.tricoteuses.fr/logiciels/tricoteuses-juridique/src/branch/main/packages/tisseuse/LICENSE.md)
|
|
4
9
|
|
|
5
10
|
Tricoteuses Tisseuse started from a full rewrite of [Metslesliens](https://www.npmjs.com/package/metslesliens) by Seb35, published under the "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE" (WTFPL) version 2.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### Create database
|
|
15
|
+
|
|
16
|
+
Using Debian GNU/Linux, install PostgreSQL, then:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
sudo su - postgres
|
|
20
|
+
createuser tisseuse -P # and enter the password
|
|
21
|
+
createdb -O tisseuse tisseuse
|
|
22
|
+
psql tisseuse
|
|
23
|
+
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
|
24
|
+
\q
|
|
25
|
+
exit
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Install dependencies
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm install
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Server Configuration
|
|
35
|
+
|
|
36
|
+
Create a `.env` file to set configuration variables (you can use `example.env` as a template). Then:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
npm run configure
|
|
40
|
+
```
|