GithubHelp home page GithubHelp logo

isabella232 / sample-linux-python-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/sample-linux-python-app

0.0 0.0 0.0 37 KB

A sample application showing users how to build simple secure applications on Azure.

License: MIT License

Dockerfile 2.45% Python 42.97% HTML 6.40% Shell 25.07% Mako 0.81% PowerShell 21.19% PLpgSQL 1.11%

sample-linux-python-app's Introduction

Sample Linux Python App

This repository contains source code for a Python Application built on Azure WebApp for Linux containers that contains the following.

  • A Docker file - Dockerfile
  • Python web app source code (Flask) - src
  • Deployment scripts - scripts
  • An init file for the Docker container - init.sh
  • A migrations folder for Flask database migrations - migrations

Getting Started

Prerequisites

  1. Install a code editor to modify and view the application code. For the sample app, Visual Studio Code was used.
  2. Install the Azure CLI on your development machine.
  3. Install Git on your system. Git is used to clone the source code locally.
  4. Install jq if you are on a Linux based system, jq being a tool for querying JSON in a user friendly way.

Deploying

Change directory into the scripts folder cd scripts

  1. If you are on powershell run the deploy-powershell.ps1 file by typing ./deploy-powershell.ps1 <REGION> <RESOURCE_GROUP_NAME> replacing the region and resource group name with suitable Azure regions and a name for the resource group
  2. If you are on linux run the deploy-bash.sh file by typing /deploy-bash.sh <REGION> <RESOURCE_GROUP_NAME>, you may have to make the file executable by typing chmod +x deploy-bash.sh
  3. After the resources have been deployed, read the documentation contained here to configure the resources in order to make the app run, without the configuration described in the documentation the application will not run

NOTE

After deployment this application needs to be configured as outlined in the documentation here App Documentation, otherwise the components will not work correctly without specifying the necessary steps


Resources

  1. Security Development Lifecycle
  2. Security Patterns
  3. Python On Azure

sample-linux-python-app's People

Contributors

microsoftopensource avatar msftgits avatar

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.