Repository for the Advanced Database Models and Architectures (MAADB 🇮🇹) exam's projects, session 2020-2021. Developed with love ❤ by Damiano Gianotti and Lorenzo Tabasso.
This project is concerned with sentiment analysis: extrating text and emoij from 60000+ tweets while comparing two different DBMS solutions: MariaDB(SQL) and MongoDB(NoSQL)
In ordert to run this project you need to valid Docker and Python installation
We used Docker in order to setup the same envoriment om nultiple machines. To run the project, you'll first have to install Docker.
You can install Docker in several ways. If you're using Linux the best way is to install it using your favorite package manager, othwerise, visit Docker download page.
Examples
# Ubuntu
sudo apt-get install docker docker-compose# MacOS
brew install --cask docker# Windows (Chocolately)
choco install docker-desktopAfter installation, verify that Docker is correclty running with
docker infoIf you are on unix sistem you maybe need to follow this post-installation step https://docs.docker.com/engine/install/linux-postinstall/
This entire project is developed in Python 3.7 using virtual enviroments. If you don't have Python installed on ypur machine, you first need to install python and then install all the dependencies needed for run the project.
You can install python via web visiting Python download page or with your favorite package manager.
Examples
# Ubuntu
sudo apt-get install python3.7 # At least 3.7# MacOS
brew install python@3.7 # At least 3.7# Windows (Chocolately)
choco install python3Then, to create the virtual enviroment see this guide from official python docs.
Execute the setup script
# On Linux and MacOS
./setup# On Windows
setupVerify that is correclty running
docker psIf you wanna take down the net
docker-compose downPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.