/jquery-pathner-nodejs-server-demo

Path API on Server side & jQuery Pathner - Demo

Primary LanguageHTML

Unmaintaine

Path API on Server side & jQuery Pathner - Demo

  • NodeJS >= v.4.x.x
  • jQuery Pathner v.1.0.2

Demo

Link: https://secure-river-30341.herokuapp.com/

See https://github.com/semarketir/jquery-pathner for more details.

A simple Server side app to handle request for records or information from jquery-pathner, of course; you can use your favorite programming languages for server side.

Install server dependencies with NPM

$ npm install

Install client dependencies with bower

$ npm run bower

Register Application

Link: https://path.com/developers/app/new

1

2

3

Set your configuration API

Open server.js file then change the values:

var CONFIG = {
    ...
    auth: {
        clientId: '<client-id>', // insert your client id in here
        clientSecret: '<client-secret>' // insert your client secret in here
    },
    ...
};

Open public/assets/js/script.js file then change the values:

...
$('.path-share-button').pathPartner({
    clientId: '<client-ide>', // insert your client id in here,
    appname: '<your app name>', // insert your app name in here
...

Run server

$ npm start

Then visit http://localhost:5000