scotch / sapling Goto Github PK
View Code? Open in Web Editor NEWAngularJS Starter App Providing User Management
Home Page: sapling.scotchmedia.com
License: Other
AngularJS Starter App Providing User Management
Home Page: sapling.scotchmedia.com
License: Other
@DjebbZ, All,
I have made some updates to the project, and I'm now at a crossroads, and I would like to get your input.
It seems that there is basic user information that will be required for the majority of requests. This information consists of:
I think that there are two ways to store and access this information:
When the app starts make a request to {API_BASE_URL}/users/me
which will return a User
object for the logged in user:
{
"name": {
"givenName": "Kyle",
"familyName": "Finley"
},
"email": "[email protected]",
"password": {
"isSet": true
},
"roles": ["admin", "mod"],
"profilePictureUrl": "...",
"isAuthenticated": true,
"isAdmin": true,
// ... additional user related properties
"catsName": "Captain Whiskers",
}
If using option 1 -- how is the password authenticated?:
POST /auth
{'email': '[email protected]', 'password': 'pass1'}
?
When the app starts make a request to {API_BASE_URL}/sessions/me
which will return a session object for the logged in user:
{
"displayName": "Kyle Finley",
"email": "[email protected]",
"password": {
"isSet": true
},
"roles": ["admin", "mod"],
"profilePictureUrl": "...",
"isAuthenticated": true,
"isAdmin": true,
// ... any additional session related data, which could be anything.
"shoppingCart": [...]
}
When more detailed user information is need make a request to {API_BASE_URL}/users/me
/users/me
displayName
it must be updated in both the user
and the session
.If using option 2 -- how is the password authenticated?:
POST /session
{'email': '[email protected]', 'password': 'pass1'}
? Or maybe send the entire user object?
Thank you for your time,
Kyle
Kyle, thank you for the effort on this library and making available. I have an application which uses almost the same stack. I was trying sapling but got the below error while following
The error is
$ ./scripts/development.sh
02 Oct 21:00:12 - error: Compiling of 'app/scripts/person/services.coffee' failed. rror: missing ] on line 50
I don't follow coffescript and would be nice to see it working locally.
thanks again.
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.