Code Monkey home page Code Monkey logo

j-app's Introduction

j-app

a Sails application

A journaling application written in Javascript using Sails.js, powered by Node, and Angular on the front end. May decide to go with ember when I get there.

j-app's People

Contributors

sethetter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

j-app's Issues

Implement session handling

I need to decide on how I want to handle sessions between client and API.

Cookie based authentication seems sufficient. I'll go with that. Session hash = secret + user id + creation time.

How would you change the User model to allow for a password to be updated?

Your User model is fine for a very simple case but in the real-world people will need to be able to change their passwords.

Given you can't access model methods from within the beforeCreate and beforeSave methods, and with a view to maintaining DRYness as much as possible, what changes would you make to your User model such that when a user's password is updated it's properly hashed. Obviously just changing beforeCreate to beforeSave is not going to work as then the password will be rehashed every time it's saved.

There are a number of ways to do this but I'm wondering what the best-practice, DRY way would be.

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.