Thursday, 10 May 2018

MEAN based API architecture question

Hey guys, just wanting to ask a noobie question for someone learning the MEAN stack. Basically I have an API written with express and currently I have no frontend connected (all testing via postman) - I want the API to be completely standalone so it can be used on any platform.I am now want to allow users to signup so they can CRUD data from the API via a UI (imagine Stripe (https://ift.tt/2KRqZdB) - what is the best way to handle this? All the endpoints on the API are authenticated via a token. Should I connect to the API database directly from the dashboard (and store a token for Auth) or should I use admin endpoints to create + manage accounts?It's the exact same setup as Stripe - they have an API like so https://api.stripe.com/ and then a dashboard https://ift.tt/1unWyB5 which uses data from the API database - what's the best practise here?Thanks in advance.

Submitted May 10, 2018 at 09:52AM by DontBlinkETH

No comments:

Post a Comment