sudo apt update -y
sudo apt install python3-venv supervisor python3-pip redis-server mariadb-server git -y 
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
nvm install v20.17.0
nvm use v20.17.0
npm install -g yarn
pip install frappe-bench
export PATH=/usr/local/bin:$PATH
bench init frappe-bench
sudo mysql_secure_installation
cd frappe-bench/sites
bench new-site fms
bench get-app erpnext https://github.com/frappe/erpnext
bench --site fms install-app erpnext
bench use fms
echo "You now can use bench start command"