/airline

Primary LanguageJupyter Notebook

AIRLINE CUSTOMER SATISFACTION

Overview

->This appliction aims at predicting whether customer of a particula airline company is satisfied after a journey with the plane.

Prerequisites

  • Python 3.x
  • Pip (Python package installer)
  • AWS CLI
  • AWS Elastic Beanstalk CLI

Installation

  1. Clone the repository:

    git clone https://github.com/steve601/airline.git
    cd airline
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Run the application locally:

    python satisfaction.py

Access the app at http://127.0.0.1:5000.

Deployment to AWS Elastic Beanstalk

Step-by-Step Deployment

  1. Initialize Elastic Beanstalk:

    eb init

    Follow the prompts to configure your application. Choose the appropriate region and platform (Python).

  2. Create an Elastic Beanstalk environment:

    eb create flask-env
  3. Deploy the application:

    eb deploy
  4. Access the application: After deployment, access your application using the URL provided by Elastic Beanstalk.

Configuration File: .ebextensions/python.config

Ensure your configuration file is set up correctly:

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: satisfaction:app