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.
- Clone or fork this repository.
- Get yourself a Heroku account if you don't already have one.
- Create an app on Heroku.
- On your Heroku dashboard, click New > Create new app.
- 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.
- Choose the manual option for deployment.
- After the app is created, deploy it manually.
- After the app is deployed, test it. It should work. If it doesn't, review the files in the repository and try again.
- 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.