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.
- Node.js 8.1.*
- NPM 5.0.*
- Loopback 3.0.*
- VS Code 1.13.*
- OSX
- Node.js 8.1.*
- NPM 5.0.*
- Loopback 3.0.*
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
.
You will need Loopback installed in order to use the command line interface. Installing is simple by doing $ $ npm install -g loopback-cli
.
Now that we have the requirements installed, we can begin setting up our local environment.
- In a terminal, do
$ git@github.com:silverlogic/custom-facebook-auth.git
. - Go to the root of the project by doing
$ cd custom-facebook-auth
. - Now we need to build the dependencies by doing
$ npm install
. - Now the project can be opened in any source editor for modifying.
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 .
.