Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Tõnis Ostrat
    @tonisostrat
    we're straying off topic from the original question but i'm intrigued now. what data exactly does that mongo instance hold?
    ImranDoet
    @ImranDoet
    Player data
    Well
    User data lets say
    We're building a platform where people have coins, etc
    So it's ind of like a game you can say
    We store player profiles
    Tõnis Ostrat
    @tonisostrat
    ok, so.. the platform will interface directly with the DB and you're building a separate internal API to manage that data?
    ImranDoet
    @ImranDoet
    Ok i'll explain
    We have databases
    some MySQL and some MongoDB
    because we wanted to check out which one of those two works the best for us
    so far Mongo works
    Players are stored on mongo
    and we have a core api
    This makes for lots of connections scattering around
    So what we want to do is have a interface where our developers can be handed a api key
    and then directly communicate with the database
    GET requests are public
    Tõnis Ostrat
    @tonisostrat
    ok so the guys who work on the core have a direct connection anyway, why does anyone else need access at all?
    ImranDoet
    @ImranDoet
    Because they need to work with Playerdata
    For example someone wants to make a feature whre x people get coins
    We'd have to give them the core api
    which then exposes the mongo db database etc
    Tõnis Ostrat
    @tonisostrat
    but that's what the core API is supposed to be. that's the interface to the data.
    ImranDoet
    @ImranDoet
    Not only
    It handles lots of stuff
    and yes
    Tõnis Ostrat
    @tonisostrat
    so you're basically going to re-implement a percentage of the core API?
    ImranDoet
    @ImranDoet
    Yes
    Into a REST API
    We also want to stand off from the core api
    Yoann MALLEMANCHE
    @YoannMa
    https://futurestud.io/tutorials/hapi-get-your-server-up-and-running You could check this website, there are some tutorial about authentication with Hapi and scope for access restriction
    ImranDoet
    @ImranDoet
    Yeah
    I saw it
    Yoann MALLEMANCHE
    @YoannMa
    I see
    ImranDoet
    @ImranDoet
    I'm going to end up having to make a custom authentication
    Tõnis Ostrat
    @tonisostrat
    doesn't the existing core have a rule/role system where you can segregate certain users (in this case your developers) so they can't hammer random endpoints but only the ones you deem accessible (the playerdata related stuff)?
    ImranDoet
    @ImranDoet
    Nope
    That's why I said the we want to get rid of the core
    Tõnis Ostrat
    @tonisostrat
    ah, gotcha. i misunderstood the "stand off" part.
    ImranDoet
    @ImranDoet
    Sorry, not a native speaker
    Tõnis Ostrat
    @tonisostrat
    honestly, it sounds more like the core is rotten already and you're just making a bandaid.
    ImranDoet
    @ImranDoet
    Yep
    Thats true
    Also
    How do I change my profile picture here
    I don't know how I got this one honestly
    Yoann MALLEMANCHE
    @YoannMa
    from github I think
    Tõnis Ostrat
    @tonisostrat
    it's the github one, yeah