• Stars
    star
    165
  • Rank 221,580 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple Flask based web application

Simple Web Application

This is a simple web application using Python Flask and MySQL database. This is used in the demonstration of development of Ansible Playbooks.

Below are the steps required to get this working on a base linux system.

  • Install all required dependencies
  • Install and Configure Web Server
  • Start Web Server

1. Install all required dependencies

Python and its dependencies

apt-get install -y python python-setuptools python-dev build-essential python-pip python-mysqldb

2. Install and Configure Web Server

Install Python Flask dependency

pip install flask
pip install flask-mysql
  • Copy app.py or download it from source repository
  • Configure database credentials and parameters

3. Start Web Server

Start web server

FLASK_APP=app.py flask run --host=0.0.0.0

4. Test

Open a browser and go to URL

http://<IP>:5000                            => Welcome
http://<IP>:5000/how%20are%20you            => I am good, how about you?

More Repositories

1

kubernetes-training-answers

Answer key for my Kubernetes for Beginners Course on Udemy
385
star
2

kubernetes-example-voting-app

Deploy Docker's example voting app on Kubernetes
143
star
3

ansible-training-answer-keys

This is the answer key for my Ansible training on Udemy
71
star
4

ansible-training-answer-keys-2

Answer key for my Ansible course on Udemy
Python
71
star
5

example-voting-app-kubernetes-v2

55
star
6

simple-webapp

Simple Web Application
Python
46
star
7

kubernetes-cka-practice-test-solution-etcd-backup-and-restore

This is the solution to the practice test for backing up and restoring an ETCD Cluster
38
star
8

ubuntu-ssh-enabled

SSH Enabled Ubuntu Image for Test and Dev purposes ONLY!
Dockerfile
34
star
9

docker-training-answer-keys

Answer key for my Docker course on Udemy
33
star
10

certified-kubernetes-administrator-course-answers

Practice question answers for Certified Kubernetes Administrator course
20
star
11

simple-webapp-docker

A Dockerized simple web application
Python
17
star
12

udemy-ansible-assignment

Solution for the Ansible Assignment on Udemy Course
15
star
13

kubernetes-example-voting-app-singlefile

Example voting app for deployment on Kubernetes
13
star
14

simple-webapp-color

Simple Web Application developed in Flask with Colorful background
Python
11
star
15

mmumshad.github.io

10
star
16

debug-ansible-modules-pycharm

Debug Ansible Modules remotely in PyCharm on windows
10
star
17

openshift-course-demos

Demo files for my OpenShift Course
9
star
18

simple-webapp-mysql

Python
8
star
19

ansible-tower-project

7
star
20

Cloud-Education

Gamified Cloud Education Presentation for Middle and Secondary School
7
star
21

my-application

My application is a python based application
7
star
22

docker-advanced-training-answers

Answer key for my Advanced Docker course on Udemy
6
star
23

ansible-modules

Custom ansible modules for cloud computing
Python
6
star
24

ansible-role-mysql

This is an ansible role for installing mysql
4
star
25

excel-sales-analytics

3
star
26

learning-app-baby-stroller-store

This is an app developed for learning purposes
CSS
3
star
27

katacoda-scenarios-2

Katacoda Scenarios
Shell
3
star
28

pcf-simple-webapp-flask

Simple Python Flask Webapp for PCF
Python
2
star
29

molecule-role-test

Molecule Role test
Python
2
star
30

docker-node-mongo-ansible-redis

Docker image containing NodeJS, MongoDB, Ansible and Redis
2
star
31

cisco-fabric-switch-port-check

Powershell script to check port status of multiple Cisco Fibre Channel Switches at once
PowerShell
2
star
32

katacoda-scenarios-1

Katacoda Scenarios
2
star
33

docker-node-mongo-ansible

Docker image containing NodeJS, MongoDB and Ansible
1
star