Gallery Learning Plan¶

This document describes steps for learning how to use Bottle and Jinja, and then using that knowledge to add a report to the webapp.

Getting Started¶

  • Read the Docs

Read and be familiar with the documentation for Bottle:

  • Bottle, the framework we are using: https://bottlepy.org/docs/stable/index.html

  • Run Bottle Locally

Now that you are familiar with Bottle, see if you can get this tutorial working on your local machine:

  • https://realpython.com/developing-with-bottle-part-1/

Add the adder application¶

The current index.html implements a simple adder that runs in JavaScript. To get the hang of building a web application, your goal is to take your demo program you created above and:

  • Create a new page called /add.html that displays the adder HTML

  • Run the demo app and verify that your add.html can be displayed in your web browser.

  • Make a change to add.html and reload the web browser to verify that the change gets made.

  • Create a new page called /add.js that serves the JavaScript adder code (currently at https://github.com/Plant-Tracer/webapp/blob/main/static/add_numbers.js)

  • Add the HTML code to add.html to load add.js

  • Reload, try typing numbers into the two boxes, and verify that you can add them.

Future work¶

After you get to this opint, it’s time to start thinking about the jinja templating engine

Understanding Jinja¶

  • Jinja, the template engine we are using: https://jinja.palletsprojects.com/en/3.1.x/ Tutorial

Setting up Bottle files (route, run, template, static_files)¶

  • setting up HTML (.tpl) https://www.youtube.com/watch?v=Qp-3DBzAEkQ

  • routing static files (.css) https://www.youtube.com/watch?v=iLX_iYoNCyU&t=10s

routing and callback (advanced tutorial)¶

  • https://bottlepy.org/docs/stable/routing.html

Plant Tracer Web Application

Navigation

Contents:

  • Plant Tracer Web App Tutorial
  • Resizing Video Files
  • Plant-Tracer/webapp Releases
  • Demo Mode
  • Developer Setup
  • Developer Setup on Amazon Linux 2023 on AWS EC2
  • Setting Up Plant-Tracer webapp on Ubuntu 24.04
  • Windows Developer Setup Notes
  • MySQL Setup for Plant Tracer
  • Installation
  • Web app theory of design
  • Gallery of Plant Videos
  • Gallery Learning Plan
    • Getting Started
    • Add the adder application
    • Future work
  • Design of the movie player
  • Bibliography
  • Upload and Track User Story
  • Notes on simplfying the implementation
  • Configuring AWS
  • SAM Readme
  • SAM Programmer notes
  • Notes on Deploying to SAM
  • Configuration on mv1

Related Topics

  • Documentation overview
    • Previous: Gallery of Plant Videos
    • Next: Design of the movie player
©2023-2025 Simson Garfinkel, Steven E. Barber, JoAnn Juzefyk, Eric D. Brenner. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source