https://github.com/durrezahmed/simple-webapp-flask
Simple Flask based web application.
https://github.com/durrezahmed/simple-webapp-flask
docker flask python
Last synced: 2 months ago
JSON representation
Simple Flask based web application.
- Host: GitHub
- URL: https://github.com/durrezahmed/simple-webapp-flask
- Owner: durrezahmed
- License: mit
- Created: 2022-12-08T14:45:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T14:48:40.000Z (over 3 years ago)
- Last Synced: 2025-01-07T21:48:59.441Z (over 1 year ago)
- Topics: docker, flask, python
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Web Application
This is a simple web application using [Python Flask](http://flask.pocoo.org/) and [MySQL](https://www.mysql.com/) database.
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://:5000 => Welcome
http://:5000/how%20are%20you => I am good, how about you?