Le but de ce repository est d'implémenter un moteur de recherche de musée.
-
Implémenter le chargement du fichier
data/MuseaGalleries.json
dansapp/webapp.py
a. inspirez vous de cette commande : https://github.com/Esme-Sudria-Database/dojo_elasticsearch/blob/master/import_es_musea_galleries
make import_data
-
Implémenter la recherche dans
app/webapp.py
a. information à propos du sdk : https://elasticsearch-py.readthedocs.io/en/master/#example-usage
make server_run
make venv
make install_requirements_dev
make server_run
You can find the latest version to ...
git clone ...
- import the data in elasticsearch
make import_data
- load the webserver
make server_run
Use make to instanciate a python virtual environment in ./venv3 and install the python dependencies.
make venv
make install_requirements_dev
If you want to freeze all the packages, use this procedure
make freeze_requirements
When you setup the requirements, a venv3
directory on python 3 is created.
To activate the venv, you have to execute /
source venv/bin/activate
Before commit or send a pull request, you have to execute pylint to check the syntax of your code and run the unit tests to validate the behavior.
make lint
make tests
- Fabien Arcellier
A short snippet describing the license (MIT, Apache, etc.)