Skip to content

miralisa/projetJDM

Repository files navigation

Prerequies

  • (X/L/_)Ubuntu LTS x86_64 >= 14.04.5
  • MySql 14.14
  • Python 2.7.x
  • Eelasticsearch 1.7.2
  • Python libraries: Flask, elasticsearch, Flask-mysql

Install Python libraries using pip

pip install flask
pip install flask-mysql
pip install elasticsearch

Configure and create a database

Create a database with the name of your choice

Specify a login, a password and a database name in database_identifiers.json

Connect to your database

To create the tables needed, do:

	source creationDB.sql

Insert new records into a database

To insert data, use the commande below:

	python insertion.py

Install and configure elasticsearch

To install elasticsearch follow step 1, 2 of this tutorial

To create elasticsearch index and put data to ES server, do:

	python indexES.py

Launch ES server:

	sudo service elasticsearch start 

Execution

To start the server, do:

	python app.py

To display a site, open a web browser and type in the adress bar:

	http://127.0.0.1:5000/

Ending

You can shut down the server by typing CTRL+C

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors