3 ms·
Long story short - I went full hipster on that grunt + yeoman + bower + angular ui and my conclusion is http://i3.kym-cdn.com/photos/images/newsfeed/000/439/835
by lukasm 13y ago
Long story short - I went full hipster on that grunt + yeoman + bower + angular ui and my conclusion is http://i3.kym-cdn.com/photos/images/newsfeed/000/439/835/47c.jpg http://i3.kym-cdn.com/photos/images/newsfeed/000/439/835/47c...
Too much complexity added to project. Going REST patch is problematic when you have to integrate with with server-render style lib or service. SEO is shit. Angular doc is worse.
Auth is base on tokens, no sessions. I reused the ideas from here https://github.com/mrgamer/angular-login-example https://github.com/mrgamer/angular-login-example
def auth_required(f):
@wraps(f)
def wrapper(args, *kwargs):
token = request.headers.get("X-Token")
if token is None:
abort(400)
user = User.verify_auth_token(token, app.config["SECRET_KEY"])
If you don't make very heavy SPA like photoshop, don't use angular.