Easily convert video to mp3 audio files
Install docker locally -> https://www.docker.com/get-started/
docker --version
Install Kubernetes command line tools -> https://kubernetes.io/docs/tasks/tools/
kubectl
Install Minikube -> https://minikube.sigs.k8s.io/docs/start/
minikube start
Install k9s -> https://github.com/derailed/k9s?tab=readme-ov-file#installation
k9s
Add a "127.0.0.1 mp3converter.com" and "127.0.0.1 rabbitmq-manager.com" in the hosts' list
sudo vim /etc/hosts
Enable ingress functionality in minikube
minikube addons enable ingress
Tunnel to 127.0.0.1
minikube tunnel
Install python3 -> https://www.python.org/downloads/
python3 --version
Install mysql -> https://formulae.brew.sh/formula/mysql
brew install mysql && brew services start mysql
Install mongo -> https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
brew tap mongodb/brew && brew update && brew install mongodb-community@7.0 && brew services start mongodb-community
Get jwt credentials
curl -X POST http://mp3converter.com/login -u test@mail.com:test123
Upload a video to convert
curl -X POST -F 'file=@./video.mp4' -H 'Authorization: Bearer ${jwt}' http://mp3converter.com/upload
Download audio from video
curl --output mp3_download.mp3 -X GET -H 'Authorization: Bearer ${jwt}' http://mp3converter.com/download?fid=${fid}