Git Product home page Git Product logo

python-project-aws-cicd-pipeline's Introduction

A Template for Deploying an CI/CD pipeline for a Python web application on the AWS platform

The appspec.yml, script files, and application files for the deployment

This repository contains a template for an CI/CD pipeline for a Python web application on the AWS platform. For the explanation on how to use this template, please refer to the following medium stories.

Requirments

Tested with these versions but older versions may work.

  • Python 3.7 or above
  • Pandas 1.1.5
  • Plotly 5.13.0
  • Dash 2.8.1
  • Dash Bootstrap Component 1.3.1

Key Files

  • app.py: The dashboard web application
  • road_crash.csv: The trimmed road crash data file extracted from the full set offered at the Queensland Government Open Data Portal
  • appspec.yml: The application specification file for the deployment using AWS CodeDeploy
  • scripts/requirements.txt: The list of Python modules to be installed during the deployment
  • `scripts/dash.service': The service specification file to be added as a Linux service.
  • 'scripts/install_dependencies.sh`: The script file to execute during the AfterInstall phase of CodeDeploy.
  • 'scripts/start_dash.sh': The script file to execute during the ApplicationStart phase of CodeDeploy.
  • 'scripts/stop_dash.sh': The script file to execute during the ApplicationStop phase of CodeDeploy.

The Road Crashes Data File

The application requires the Road Crashes CSV file (crash_data_queensland_1_crash_locations.csv), which can be downloaded from the Open Data Portal of the Queensland Government, Australia.

A trimmed version is provided here for testing. Please download the original set if needed.

Execute the application

Use the -f flag to specify the road crash data CSV file.

python app.py -f road_crash.csv

Licences

Copyright (C) 2023 - Andrew Kwok-Fai Lui

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.