configuration - marcelniyi/todo GitHub Wiki

backend of barefoot Nomad local deployment

Deploys front end react application and backend express api on the same linux box

Setup (tested on ubuntu 18.04)

  • install postgres database
  • install nodejs

Postgres

Responsible for data storage

  • sudo apt update
  • sudo apt install postgresql postgresql-contrib
  • sudo -i -u postgres
  • psql
    • CREATE DATABASE barefoot_db;
    • CREATE USER barefoot_usr with password 'p9mCCHJE';
    • GRANT ALL PRIVILEGES ON DATABASE barefoot_db to barefoot_usr;
    • \q;

Nodejs

Responsible for running the react front end and express

  • apt install nodejs npm

Config social authentication

  • Google
  • Facebook

Google

Responsible for authentication using Google in your Node.js applications.

Facebook

Responsible for authentication using Facebook in your Node.js applications.

  • Create new app in the Facebook Developers.
  • You will get FACEBOOK_APP_ID and FACEBOOK_APP_SECRET for environment variables