-
Create a folder project
cd ~
// go to your user pathmkdir project
// create a foldercd project
// move to inside folder -
Updating system urls
sudo apt-get update
-
vim
sudo apt install vim
-
Installing basic programs `sudo apt-get install vim git wget
-
Installing
mongodb
-
get the key
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add
-
Create a liste file for mongo
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
-
Update package
sudo apt-get update
-
Start Mongodb process
sudo systemctl start mongod
-
Check if running
sudo systemctl status mongod
-
:::info if python 3.11 is required:
-
sudo add-apt-repository ppa:deadsnakes/ppa -y
-
sudo apt update
-
sudo apt install python3.11
::: -
Installing anaconda from here
chmod +x Anaconda3-2024.02-1-Linux-x86_64.sh
./Anaconda3-2024.02-1-Linux-x86_64.sh
Restart the operating system
# 1. Installing pip
# `sudo apt install python3-pip -y`
> Around 83 Mb.
-
Installing pymongo
sudo pip3 install pymongo
-
Installing jupyter notebook
pip3 install jupyterlab
-
Installing jupyter core
sudo apt install jupyter-core
if this error occurs:
pip3 install --upgrade setuptools
-
Install jupyter notebook
pip3 install notebook
-
Clonando reposytorio
git clone https://github.com/mjacker/bigdata.git
-
cd into repositoryo
cd bigdata
-
Run Jupyter lab
python3 -m jupyterlab .
- Run the ipynb file
- Change password and username
- client = pymongo.MongoClient('mongodb+srv://group2:(PASSWORD)@cluster0.7cwggsq.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0')