olingerc / oto_old

Organize the Olingers Webapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OrganizeTheOlingers

but then I decided to use flask only as json provider (and special api calls) and use a client templating system. I went for angularjs I then went with the modularity approach in http://cliffmeyers.com/blog/2013/4/21/code-organization-angularjs-javascript

  1. python runserver.py
  2. the original author had a manage step to create the db: python manage.py create_db && python manage.py seed_db --seedfile 'data/db_items.json'

#Authentication The api calls are secured on the server side using the flask sessions As soon as angular gets a 401 from an api call, it redirects to login Routing is secured via angular only. i used http://www.frederiknakstad.com/authentication-in-single-page-applications-with-angular-js/

server: adminapi api.py and auth.py , client detects this using an interceptor in app.js client: routingConfig.js

#404 and 401 Handled by angular, flask only sends a 401 or 404

About

Organize the Olingers Webapp


Languages

Language:JavaScript 48.9%Language:Python 48.2%Language:CSS 2.9%