Microservices architecture design built using Python, Rabbitmq, Postgresql, Mongodb to build a video to Mp3 conversion API.
-
$ cd python-microservices-kubernetes $ kubectl apply -f postgresql/manifest/
-
$ cd python-microservices-kubernetes $ kubectl apply -f mongodb/manifest/
-
$ cd python-microservices-kubernetes $ kubectl apply -f rabbit/manifest/
-
$ cd python-microservices-kubernetes $ kubectl apply -f python/src/auth/manifest/
-
$ cd python-microservices-kubernetes $ kubectl apply -f python/src/gateway/manifest/
-
$ cd python-microservices-kubernetes $ kubectl apply -f python/src/converter/manifest/
-
$ cd python-microservices-kubernetes $ kubectl apply -f python/src/notification/manifest/
--Create Database User
CREATE TABLE user (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
email VARCHAR (255) NOT NULL,
password VARCHAR (255) NOT NULL
);
--Add Username and Password for User
INSERT INTO user (email, password) VALUES ('you@gmail.com', '123456');
-
$ curl -X POST 192.168.56.2:30002/login -u regiapriandi012@gmail.com:12345 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJlZ2lhcHJpYW5kaTAxMkBnbWFpbC5jb20iLCJleHAiOjE2Njk2MTUxMjEsImlhdCI6MTY2OTUyODcyMSwiYWRtaW4iOnRydWV9.YpNpfTBJLI7u3v6lwDZphGPBnjc83t7m9DkUnTXifpU
-
$ curl -X POST -F 'file=@./video.mp4' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJlZ2lhcHJpYW5kaTAxMkBnbWFpbC5jb20iLCJleHAiOjE2Njk2MTUxMTIsImlhdCI6MTY2OTUyODcxMiwiYWRtaW4iOnRydWV9.TgMr3Uwk5pnZNrCMWYZfsdkBrTfx2IMnYbET_iwJu-g' 192.168.56.2:30002/upload
-
curl --output video.mp3 -X GET -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJlZ2lhcHJpYW5kaTAxMkBnbWFpbC5jb20iLCJleHAiOjE2Njk2MTUxMTIsImlhdCI6MTY2OTUyODcxMiwiYWRtaW4iOnRydWV9.TgMr3Uwk5pnZNrCMWYZfsdkBrTfx2IMnYbET_iwJu-g' "192.168.56.2:30002/download?fid=63830df2667a14a04a9d99b9"
-
$ ls | grep .mp3 video.mp3