GithubHelp home page GithubHelp logo

rkbalu / aiohttp-three-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robertoprevato/aiohttp-three-template

0.0 0.0 0.0 842 KB

Project template for Python aiohttp three-tier web applications

License: MIT License

Shell 0.51% JavaScript 1.82% Python 80.63% CSS 12.38% HTML 4.66%

aiohttp-three-template's Introduction

aiohttp-three-template

Project template for three-tier web applications using Python aiohttp for the presentation layer.

Homepage

Project template features

  • Project skeleton ready to use, to start a three tier web application using aiohttp for its presentation layer.
  • Strategy to organize the application into areas (e.g. public, admin, etc.).
  • Authentication and authorization strategies.
  • Server side localization strategy (e.g. supported cultures by application area, culture code in routes, etc.).
  • Culture code in url route; logic to validate culture and redirect when a request hits a non supported culture.
  • Code organization to use YAML configuration file for the application.
  • Database based session management, supporting anonymous users sessions and storing client information (user-agent).
  • Antiforgery token validation (session based, dual token technique; for AJAX requests and regular form posts).
  • Instructions for PostgreSQL setup.
  • Script to create PostgreSQL tables for accounts, sessions, login attempts (public area and administrative area).
  • Strategy to use secure cookies (HTTPS only) by configuration file.
  • Strategy to show or hide error details by configuration.
  • Strategy to activate / deactivate serving of static files by configuration file.
  • Strategy to force refresh of clients cache (JavaScript and CSS files) by configuration file.
  • Integration with Google Analytics, by configuration file.

Documentation

Why exactly PostgreSQL?

PostgreSQL seems to be the best supported DBMS for use with the latest versions of Python and its features for concurrency (asyncio), including the convenient async / await syntax.

aiohttp-three-template's People

Contributors

robertoprevato 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.