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
Responsible for authentication using Google in your Node.js applications.
- Create new project in the Google Developers Console.
- You will get
CLIENT_ID
andCLIENT_SECRET
for environment variables
Responsible for authentication using Facebook in your Node.js applications.
- Create new app in the Facebook Developers.
- You will get
FACEBOOK_APP_ID
andFACEBOOK_APP_SECRET
for environment variables