hackthenorth / mobile-backend Goto Github PK
View Code? Open in Web Editor NEWBackend for HTN iOS and Android app
Backend for HTN iOS and Android app
@hackthenorth/commiters @snario
The code I've written to write updates to Firebase and send off notifications to users via GCM is mostly finished, except for a few TODOs for GCM and the fact that we don't have automated tests yet.
It'd be sweet if someone could read it over. Any feedback is welcome, but mostly I just want to make sure that there isn't anything that doesn't make sense, even if you don't know how GCM works.
Here's a breakdown of the schema as I see it:
/mobile/gcm
{
"abc123": "dummy",
"def456": "dummy", ...
}
/mobile/mentors
, /mobile/team
, /mobile/updates
, /mobile/schedule
, /mobile/prizes
/mobile/test
"DO NOT DELETE; used for testing"
So, the GCM API key that we're given only works for whitelisted IP addresses. So, like, we have to add every admin's IP address to the whitelist, and if they move and get a new IP then it'll break. Depending on how much you value things just working and how many admins we have using these scripts, this can just be a minor annoyance, or something that we have to fix. If we only have one or two people using these scripts it's probably not worth the effort to set something up, they'll just have to log in to the dashboard and add their ip.
In case it's something we have to fix, I'm trying to think of a way to let people use this script without having to add their IP address to the GCM whitelist. If we had a canonical admin computer that is accessible via ssh or something, then we can just have everyone run the scripts via ssh or something. I think we might be able to get something like this from the CSC.
Anyway, if anyone else has any ideas, that'd be great.
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.