Ankuraxz / Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend - Analyzer

How to use this Code Locally

1. Install and activate virtual environment

python3 -m venv venv
source venv/bin/activate

2. Install dependencies

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

eb create analyzer-env

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 

Deploy from Console

2. Zip the project

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

About

License:Apache License 2.0


Languages

Language:Python 99.3%Language:Procfile 0.7%