This is just a sample app to play with:
- Path API
- NodeJS v.4.x.x
- AngularJS v.1.x.x
- Satellizer v.0.15.5 Satellizer is a token-based authentication module for AngularJS with built-in support for OAuth Provider
The demo app is a web application ( - Displaying a list of songs from BBC Radio - ) where users ( signing in using their Path accounts ) can post a Photo Moment
to Path platform with Cover album as a photo and Title & Artist name as caption.
<root-folder>
├── config.js ( Common file )
├── gulpfile.babel.js
├── src
│ ├── components
│ │ ├── component1
│ │ │ ├── component1Controller.js
│ │ │ ├── Component1Directive.js
│ │ │ ├── Component1Service.js
│ │ │ ├── component1.html
│ │ │ └── component1.js
│ │ └── ...
│ ├── config.js ( Angular App Config )
│ ├── index.html ( Base HTML file )
│ └── index.js ( Angular Boot )
├── static
│ ├── css
│ │ ├── component1.css
│ │ └── ... *.css
│ └── img
│ └── *.png
└── support
├── path.js
├── server ( You should to create your own server, this is just an example )
│ ├── config.js
│ ├── express.js
│ ├── router.js
│ └── routers
│ ├── auth.js
│ ├── moment.js
│ └── playlist.js
└── webpack.js ( Webpack config )
Link can be found at https://api.path.com/developers/app/new
The demo app is using NodeJS and NPM, please make sure if NodeJS and NPM have already been installed in your environment.
$ cd angularjs-nodejs-path-api-demo
$ npm install
Client ID
<root-folder>
├── config.js ( Set your client id in this file )
└── ...
Client Secret
<root-folder>
└── support
├── server
│ ├── config.js ( Set your client secret in this file )
│ └── ...
└── ...
$ npm start
The default task will build and run a temporary Server to handle request for records or information.
Then visit http://localhost:3000