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.
Example app. Node.js powered journaling application with Sails + web client with TBD JS framework.
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.
Currently an active session is required to access entries, but does not limit to a specific user.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.