Skip to content

AninditaBasu/flask-heroku-starter-pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask for Heroku

The unofficial 🙂 starter pack

This repository has everything you need to get a basic web app in Python to run on Heroku. Consequently, the repo has the barest minimum files needed to build a web app with Flask.

How to use

  1. Clone or fork this repository.
  2. Get yourself a Heroku account if you don't already have one.
  3. Create an app on Heroku.
    1. On your Heroku dashboard, click New > Create new app.
    2. Follow the on-screen instructions to name your app, and connect it to your cloned or forked repository. If this is the first time you are using your Heroku account to connect to anything on your GitHub account, you're asked to allow inter-site authentication.
    3. Choose the manual option for deployment.
  4. After the app is created, deploy it manually.
  5. After the app is deployed, test it. It should work. If it doesn't, review the files in the repository and try again.

Files in this repository

templates/first_page.html *
Required. This is the app home page that's displayed when the app is launched.
templates/response_page.html *
Required. This page is displayed after someone enters an input on the app home page.
flaskStarter.py *
Required. This is your Flask app.
LICENSE
Optional. The license under which I'm making this repo available. Not required for the app to work.
Pipfile *
Required. Tells Heroku which Python packages to install in the environment before building the app.
Procfile *
Required. Tells Heroku how to launch the app (which, in this case, is as a web page).
README.md
Optional. Not needed to make your app run. Is also the file you're reading right now.
requirements.txt *
Required. Tells Heroku the versions of the Python packages needed.

Why I made this template

Click to read 👉 Post on dev.to