An demo API demonstrating how to integrate a custom Facebook OAuth2 flow that can be used for mobile clients
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
common/models
server
.editorconfig
.eslintignore
.eslintrc
.gitignore
.yo-rc.json
LICENSE
README.md
package-lock.json
package.json

README.md

Custom Facebook Auth

An demo API demonstrating how to integrate a custom Facebook OAuth2 flow that can be used for mobile clients. The project is generated by LoopBack.

Technology

  • Node.js 8.1.*
  • NPM 5.0.*
  • Loopback 3.0.*
  • VS Code 1.13.*

Requirements For Installing Locally

  • OSX
  • Node.js 8.1.*
  • NPM 5.0.*
  • Loopback 3.0.*

Installation

Node.js/NPM

When installing Node, NPM automatically comes with Node. To install the latest version of Node, we recommend using Homebrew. Once homebrew is installed, install Node in the terminal doing $ brew install node. Verify that both Node.js and NPM were installed successfully bying do $ node -v and $ npm -v.

Loopback

You will need Loopback installed in order to use the command line interface. Installing is simple by doing $ $ npm install -g loopback-cli.

Setup

Now that we have the requirements installed, we can begin setting up our local environment.

  1. In a terminal, do $ git@github.com:silverlogic/custom-facebook-auth.git.
  2. Go to the root of the project by doing $ cd custom-facebook-auth.
  3. Now we need to build the dependencies by doing $ npm install.
  4. Now the project can be opened in any source editor for modifying.

Running Locally

When running locally, the base url will be http://0.0.0.0:3000. The explorer can be accessed by http://0.0.0.0:3000/explorer. Run the application by doing $ node ..