No description
- HTML 77.7%
- Python 16.6%
- CSS 5.7%
| static | ||
| templates | ||
| .gitignore | ||
| app.py | ||
| readme.md | ||
Seasons App
This is a basic app to demonstrate using Jinja2 syntax with Flask.
Running
- Set up a Python virtual environment
python -m venv venvvenv\scripts\activate
- Install project dependencies
pip install flask python-dotenv
- Create your
.envfile - Run the app with
flask run
Developing Your Own Version
To develop your own version of this project, you can clone or fork this repo.
git clone <repo url>makes a copy of the repo, but still considers the upstream (parent) repo to be this repo. This is fine for development and testing, but the remote repo still belongs to me.- Forking the repo makes a copy of the repo on your GitHub account, meaning that you have full control of it from that point forward. This is the better approach when you want to make your own version of an existing project, as opposed to contributing to the existing one.
Branches
There are a few branches of the project that represent different stages of development, which you may find helpful:
mainis the most current and up to date branch at the final stage of development, including all features present in other branches.BaseAppNoInheritanceis the basic Seasons app, just a page displaying the current season, with no template inheritance, additional pages, Bootstrap, headers, or extra features.- This is the starting point to practice adding those extra features from.
TemplateInheritancerefactors the app to use template inheritance for theindex.htmlpage.- This is the starting point for adding your own custom page.
addCardPageis my personal development branch where I add some new features and try things out.