utopian-io/steemconnect

Name: steemconnect

Owner: Utopian.io

Description: SteemConnect2: Token Based Authentication Made Easy

Forked from: mooncryption/steemconnect

Created: 2017-12-02 20:20:11.0

Updated: 2017-12-02 20:20:12.0

Pushed: 2017-12-05 00:30:17.0

Homepage:

Size: 5299

Language: CSS

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Utopian Connect

Utopian.io's premier account connection and identity layer service.

Based on a fork of SteemConnect (a Steemit Inc + Busy Project), adapted and modified for Utopian.

Installation

Follow the four sections below to install and run Utopian Connect!

A. Configure Node
  1. Clone this repository locally and cd into it.

  2. Download and install Node.js >= 7.7.1 then run

    install
    
  3. Set these Environment variables like so: (you must use the export command)

    rt BROADCASTER_USERNAME='[YOUR STEEM ACCOUNT NAME, example: utopian-io]';
    rt BROADCASTER_POSTING_WIF='[YOUR POSTING WIF FOR THE ABOVE ACCOUNT]';
    rt JWT_SECRET=[RANDOM STRING HERE];
    rt DATABASE_URL=localhost:5432;
    rt STEEMJS_URL='https://api.steemit.com';
    rt DEBUG='sc2:*';
    rt PORT=3500;
    
B. Make the Database
  1. Install postgreSQL:

     install postgresql # install postgreSQL with Homebrew
    tl -D /usr/local/var/postgres start && brew services start postgresql # start postgreSQL
    gres -V # confirm that postgreSQL is running
    
  2. Now, run psql postgres on the command line to enter postgres's command prompter (you may or may not need sudo.)

  3. You are now in the PSQL command line. Try postgres=# \du to see the list of installed users.

  4. Set up Utopian Connect in the PSQL line:

    TE ROLE utopian WITH LOGIN PASSWORD 'utopian';
    
  5. This creates the main utopian POSTGRES account.

    
    
  6. Check to make sure the account was created. The attribute list should be empty. If the account was not created, try CREATE ROLE again.

    R ROLE utopian SUPERUSER;
    
  7. Give the account permission to access databases freely.

    TE DATABASE sc2;
    
  8. Create a database with name sc2.

    T ALL PRIVILEGES ON DATABASE sc2 TO utopian;
    
  9. Make sure the utopian account has permissions to the database.

  10. Lastly, I recommend installing this free software called postico to manage the database. The GUI for Mac is very easy to use.

    
    
  11. Quit the PostGres command prompter.

C. Setup the Database
install -g sequelize-cli
D. Run the Project
start

Utopian Connect should be running now, and the webpack should be built.

Visit localhost:3500 or localhost:3500/dashboard in your browser to check it out


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.