Skip to content

jQwotos/webnouncements

Repository files navigation

Webnouncements

templating

Frontend

  • Front end is the actual html, css and js that is used to make the website look like something nice.

Frameworks

  • Currently the MaterializeCSS framework is used.
  • Other front end frameworks can be added,
    • Just add them to the templates/_includes/head.html file and the rest of the pages that use the base template will also have them ready.

Static static/

  • Static files do not perform any backend action, instead they are static content.

Templates templates/

Includes templates/_includes/

  • This folder contains html that is to be imported by templates, the head, navbar and scripts for the frontend frameworks are stored here.

display templates/display/

  • This folder contains all of the templates that relate to displaying announcements for the general public

    • display.html

      • This file has the basic display that is to be iframed
    • print.html

      • Template for creating a easily printable view
    • read.html

      • The template that is the read announcements button

manage templates/manage/

  • Templates that relate admin related tasks
    • templates/manage/manage.html
      • Displays all of the users, invite code generation, user removal for admin links only.

submit templates/submit/

  • Templates that

Backend

lib lib/

  • Contains all of the scripts that pertain to the backend of the webapp.

apps lib/apps/

  • Contains all of the apps that are used to display and handle get and post requests.

supports lib/apps/supports

  • Scripts that are imported by apps that can handle multiple things, some store constants.

lib/apps/constants.py

  • Contains some variables that are used across multiple different scripts

lib/apps/dater.py

  • Contains the function that is used for submissions
    • poster(self, new = True): takes in the self which is the

lib/apps/main.py

  • Main contains the primary Handler class which has uses the webapp2.RequestHandler class

    • class Handler():

      • respondToJson(self, json_data):

        • requires json data (in dictionary from)
        • sends json data to client
      • write(self, *a, **kw):

        • basic without templating response to a get request in plain text.
      • render_str(self, template, **params)

        • renders a template with the optional params
          • the params are passed to the template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published