Netflix for Anime
This post is about creating an application similar to Netflix but for Anime only on both AWS and Azure separately. We will be using most of the services and integrate them together to create two separate applications working on their own cloud platform. Our application will be globally accessible and easy to use fast load time with static content delivered by CDN of AWS and Azure. Our application will be deployed in three parts of the world America, Europe, and Asia with restrictive development VM's and an expected billing report.
- AWS RDS
- AWS S3
- AWS CloudFront
- AWS EC2
- AWS AMI
- Elastic IP
- Route53
- AWS VPC
- Azure MySQL Server
- Azure Storage Accounts
- Azure CDN
- Azure Virtual Machine
- Azure Shared Gallery
- Azure App Service
- Azure Traffic Manager
- Azure DNS Zones
- Azure VNet
1 Follow these commands to run the application
git clone git@github.com:codexponent/animeflix.git
# # For backend
cd backend
pip install -r requirements.txt
pytrhon main.py
# # For Frontend
cd frontend/
npm install
npm run start
- Configuration (config.ini for flask):
[MYSQL]
database =
host =
user =
password =
- Configuration (config.json for frontend [src/]):
{
"vid_1": <CDN-Link-for-AWS-Azure>,
"vid_2": <CDN-Link-for-AWS-Azure>,
"vid_3": <CDN-Link-for-AWS-Azure>,
"vid_4": <CDN-Link-for-AWS-Azure>,
"vid_5": <CDN-Link-for-AWS-Azure>,
"vid_6": <CDN-Link-for-AWS-Azure>
}
- I also have a Dockerfile for convienence
docker run -exec -it -p 80:80 -p 5000:5000 -p 3000:3000 --name webserver <image-here>
- Crontab reboot script
#!/bin/bash
sudo docker stop webserver
sudo docker rm webserver
sudo docker run -exec -it -p 80:80 -p 5000:5000 -p 3000:3000 --name webserver <image-name>
(crontab -l 2>/dev/null; echo "@reboot <location-of-your-above-script>") | crontab -