4 ms·
The hipster stack is an interesting one. Elixir + Phoenix framework, GraphQL, React. Honestly, though, I'm doing everything with GraphQL now. It is a huge bene
by alexanderson 10y ago
The hipster stack is an interesting one. Elixir + Phoenix framework, GraphQL, React.
Honestly, though, I'm doing everything with GraphQL now. It is a huge benefit for all aspects of application stack design now.
- hackerboos 10y agoDid GraphQL fix the authorization problems? Locking resources and attributes to authorised users?
- alexanderson 10y agoUsing Apollo Server, I get around authentication with an auth query which updates the context object of the query with the auth token of the user. Then, any subsequent queries can use that auth token to authenticate the user and authorize it for the query themselves. I've also seen it where the authentication is handled by middleware before GraphQL even touches the request. I figure those two methods work for about every use case.
- alexanderson 10y agoUsing Apollo Server, I get around authentication with an auth query which updates the context object of the query with the auth token of the user. Then, any subsequent queries can use that auth token to authenticate the user and authorize it for the crease themselves. I've also seen it where the authentication is handled by middleware before GraphQL even touches the request. I figure those two methods work for about every use case.
- paulddraper 10y agoNo more than HTTP or SQL fixes these problems on their own.
- karmajunkie 10y agoI do auth with a simple Ajax form and make all of my graphql calls take an auth header. Auth is really somewhat orthogonal to graphql. You can do it with graphql or not, up to you.
- desireco42 10y agoYou are living the dream :)
- zpalin 10y agoDo you have any example projects or resources you used for getting everything working together nicely? I have tinkered with that setup a bit but haven't come up with something I love yet.
- basch 10y agothere is an idea for a joke-site slash kafkaesque sadomasochistic torture challenge generator. Hipster Stack Generator. >Phoenix Absinthe Vue.js TypeScript Apollo Ethereum
- deleted 10y ago[deleted]