How to use this Code Locally
1. Install and activate virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
3. Run the Uvicorn server
uvicorn main:app --reload
4. Open the API documentation
http://localhost:8000/docs
Deploy to AWS Elastic Beanstalk
1. Create a new Elastic Beanstalk application
eb init -p python-3.9 analyzer
2. Create a new Elastic Beanstalk environment
3. Deploy the application to Elastic Beanstalk
eb deploy analyzer-env --staged --profile analyzer --region us-east-1
4. Open the API documentation
eb open analyzer-env --profile analyzer --region us-east-1
3. Procfile, Main.py and requirements.txt should be in the root of the zip file
zip -r analyzer.zip . main.py Procfile requirements.txt