quote

martedì, ottobre 13, 2015

PassportJS - NodeJS login with Facebook

http://passportjs.org/
https://github.com/jaredhanson/passport-facebook/tree/master/examples/login
Create an appId and App secrete from https://developers.facebook.com/
In local development make sure you follow this http://stackoverflow.com/a/26457495/379173
I added localhost:3000 since my node js process was running on port 3000.

Installing postgresql on Ubuntu [Notes]

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
Ubuntu Software center: pgAdmin III

sudo -u postgres -s
$ psql
postgres=# ALTER USER postgres PASSWORD 'xxx';


https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04

http://www.linuxscrew.com/2009/07/03/postgresql-show-tables-show-databases-show-columns/

exit from psql