This project is related to a No-SQL database, whose data are referred to autoctone botanic species.
The final goal is creating a function that performs the estimation of the ornamental value, given the specific characteristics of a single species.
(The ornamental value is a figure of merit that can be used in order to decide if a specific species can be planted in a specific area. The higher the ornamental value, the best the result)
You can find an in-depth study of this topic at this link.
Link to the whole .json
database file.
Link to the project .pdf
presentation.
Setting up the local environment
...and navigate to its root directory.
...calling it .my_env
(For gitignore-related reasons).
$ python3 -m venv .my_env
(You'll be prompted to install the venv
module if you don't have it yet).
$ source .my_env/bin/activate
If this command doesn't work try with:
$ . .my_env/bin/activate
In Windows 10 try with :
.\.my_env\Scripts\activate.bat
(You should notice that the console starts displaying the virtual environment's name before your username and the dollar-sign).
In the virtual environment you just created run:
(.my_env)$ pip install -r requirements.min.txt
If instead you want to install the very same versions of the libraries that we used run:
(.my_env)$ pip install -r requirements.txt
Run the app on localhost
If you have not already installed on your device, run:
$ pip install notebook
(.my_env)$ jupyter notebook
Setup the database credentials
The file settings/db_config.csv
should contain the configuration settings needed to connect to the MongoDB instance.
The file format should be as follows:
key,val
username,<your-username-here>
password,<your-password-here>
database,<your-database-name-here>
cluster,<your-cluster-address-here>