joeyklee / quant-humanists-2019

Repo for NYU's ITP "Quant Humanists: the 'I' in API" course 2019
20 stars 7 forks source link

Very Basic Express Authentication Examples with NeDb and Mongodb #20

Closed joeyklee closed 5 years ago

joeyklee commented 5 years ago

Hi All,

As some of you are starting to think about building applications you might be able to deploy on a hosting service using your existing express knowledge (e.g. heroku) so you can open them on your phones or remotely away from your computer. This is all good, but as you're collecting personal data I want to make sure you're baking in some level of authentication so that your API and data are somewhat protected.

I've made this demo to show how very basic express authentication works. Maybe this is something we can all walk through together next time we meet, but I highly encourage you to try to get this running.

https://github.com/joeyklee/very-basic-express-auth-example

UPDATE: VERY COOL

Our classmate Eva pointed out the use of Apple Shortcuts App to connect the custom API's we're building to nice native mobile app experience interfaces of the iphone. Eva and I set one up to pair with the vary-basic-express-auth-example using mongodb and heroku.

This ... https://youtu.be/H2WV2OT0_Hg

Leads to this... https://youtu.be/hf47XMA68Hw

which leads to... Screenshot_2019-03-13 Simple Express Basic Auth Demo(1)