/assembleenationaleFR

api for searching and filtering deputies by words in articles of French Assemblée Nationale.

Primary LanguageTypeScript

API FOR SEARCHING AND FILTERING DEPUTIES IN FRENCH ASSEMBLEE NATIONALE

Provide http routes for searching and filtering deputies with customs fields from key-words or sentences found in the articles they published. Provide also scripts to restructure datas from deputies bson files and to store and asignate articles from pdf official files of Assemblée National parutions.

TECHNO

nodejs, express, mongodb, mongoose, pdf-parse

USAGE

  1. Clone the repository on your machine.
  2. Open a terminal and move to the root of the project in the folder created by cloning repository.
  3. In the terminal, type "npm i" and press enter (you have to get npm and nodejs installed).
  4. In the terminal, type "npm run test" and press enter for launching mocha test or "npm run build" to create a dist folder containing the javascript native code.
  5. Be shure to have mongodb installed on your local machine and accessible for dev mode.

SCRIPTS

  1. Use scripts "buildDeputies", "exportCleanDeputies" and "importCleanDeputies" to create a mongodb collection compatible with pfd files. You need to have the original deputes.bson in the files folder