Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 984 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 984 Bytes

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