Skip to content

This repository contains a simple Flask (Python) based web application.

Notifications You must be signed in to change notification settings

dcs-sastra/flask-demo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-demo-app

This repository contains a simple Flask (Python) based web application, that asks the user name, and displays a personalized greeting with the entered name.

Task

Create a Dockerfile with suitable commands to create an image that enables a container to run this application on port 5685, after installing any necessary dependencies. Creation of Dockerfile is enough, and creation of the image is not necessary. The created Dockerfile can be uploaded in the last section of the questionnaire given in the instructions.

Description of the App

Routes

  • GET / : Renders the homepage, prompting the user to enter his/her name.
  • POST /mainpage : Renders a page, that displays a greeting with the name given by the user in the main page

Files/Folders

  • app.py : Entry point for the application
  • requirements.txt : Contains the list of necessary dependencies for the app to run.
  • templates : Folder containing templates
    • index.html : Template for GET /
    • mainpage.html : Template for POST /mainpage

About

This repository contains a simple Flask (Python) based web application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published