Skip to content

soloranger/custom-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simple Web Application

This is a My test web application using Python Flask and MySQL database. I just do it to learn more about git and Docker

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 python3 python3-pip 

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?

RUN With Docker

or You can use the docker file to run it

docker build . -t custom-app
docker run -p 5000:5000 custom-app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published