Git Product home page Git Product logo

flask-class's Introduction

flask-class

This is the repo for a Flask class I teach fairly often for DC PyLadies.

Topics covered in this class:

  • HTML
  • CSS (Including Bootstrap)
  • Flask
  • Virtualenv and virtualenvwrapper
  • Deployment
  • Best practices

Topics not covered:

  • Python
  • Javascript and jQuery
  • Fabric and server set-up

Sections

This class will be run in three sections. The first is dedicated to set-up and installation. The second will cover HTML and CSS. The third covers development with Flask.

These classes can occur on the same day, if you don't mind a long day, or you're dealing with students who are already proficient with developing for the web. If you have a class that is new to any of the topics, however, you may want to teach the classes on their own days.

Section 1

  • Install:
    • virtualenv and virtualenvwrapper
    • pip and easy install
    • Flask (just to check)
    • SQLite
  • Goals:
    • Make sure all students can run the stack
    • Explain what will be covered in the next two classes
  • Note: This is not a 'class' per se, but can be used to optimize the time alloted for the actual classes. Full attention can be given to problematic systems, and students will be able to tinker around on their own time.

Section 2

  • What is HTML?
    • What are tags?
    • Creating a basic HTML document
    • Validating your HTML
    • Adding media
    • Forms
    • Let's talk about browsers...
    • Let's check out what others are doing!
  • What is CSS?
    • What is CSS?
    • Most basic selectors
    • Adding classes
    • Adding IDs
    • So what can we do?
      • Borders
      • Backgrounds
      • Colors
      • Transformation
      • (More to come)
    • Introducing Bootstrap!
      • Using bootstrap
      • Overriding bootstrap

Section 3

  • What is Flask?
    • What can it do?
    • What can't it do?
  • Making a Flask environment
    • Why sandbox?
    • Checkout sample website
    • Let's talk about git...
  • A five minute review of Python!
  • Basic flask site
    • Adding a template
    • Adding variables
    • It's just Python! (adding random)
    • Adding a new view
  • Advanced templates and styling
    • Using jinja functionality
    • Inheriting templates
    • Let's make it pretty... (adding Bootstrap)
  • Let's add some forms
    • Install WTForms
    • Let's talk about requirements.txt
    • What's this cross-site stuff?
    • Form to nowhere
    • Form to SOMEWHERE
    • Adding custom validation
  • (In development)

flask-class's People

Contributors

kcunning avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.