Commit 9c6af05d authored by Christophe Benz's avatar Christophe Benz

Update config and instructions

parent e4c0c010
DATABASE_CONNECT_STRING=
DATABASE_USERNAME=
DATABASE_PASSWORD=
WIKIBASE_URL=https://wiki.dfih.fr/
MEDIAWIKI_BOT_USERNAME=WikibaseAdmin@dfih-importer
MEDIAWIKI_BOT_PASSWORD=raabkbmlkk3f8eh5cpmj8ieo73oadq9s
MEDIAWIKI_SITELINK_SITE=dfih.fr
\ No newline at end of file
......@@ -7,13 +7,18 @@ _Wikibase bots for the "Données financières historiques (DFIH)" project_
```bash
git clone https://gitlab.huma-num.fr/eurhisfirm/dfih-wikibase.git
cd dfih-wikibase/
npm install
cp .env.template .env
```
Edit `src/config.js` to change database informations. Then
Customize `.env` variables (see next sections for details).
```bash
npm install
```
## Register script as a MediaWiki bot
- go to the `Special:BotPasswords` special page of your Wikibase instance
- give the name `{username}@dfih-importer` to the bot for example (update `MEDIAWIKI_BOT_USERNAME` accordingly)
- check "Edit existing pages" and "Create, edit, and move pages" grants
- copy the generated password to `MEDIAWIKI_BOT_PASSWORD`
## Update Wikibase with DFIH issuers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment