0.0.1 • Published 10 years ago
fit-facebook v0.0.1
fit-facebook
` Display an example of a small social media app using angularJs, jasmine.Js and protractor.js
Install
- Install nodeJS, npm, bower and gulp and node-foreman
- Run
npm install - Run
cd www/ - Run
npm install - Run
bower install - Install https://toolbelt.heroku.com/
- npm install -g gulp
- npm install -g karma
Develop
- Run
./development.sh
Preview
Run
./production.sh
How to start karma
- Open nodeJs prompt
- Run
cd www - Run
karma start
How to run protractor
Open webdriver
- Open nodeJs prompt
- Run
cd www\test\e2e\ - Run
webdriver-manager start
Run protractor
- Open nodeJs prompt
- Run
cd www\test\e2e\ - Run
protractor conf
Create module
- Open nodeJs prompt
- Run
cd www - Type
node ff moduleName
this will generate the folder with controller, service, route and app for that module.Remember to go app.js, require the module in the file and add as a dependency.
To link to an new application:
- create a file named facebook.secret.ids.js with the content:
module.exports = {
clientId:'????',
clientSecret:'?????'
}- update the facebook url in the www/public/modules/ff-core/ff.core.controller.js with the right client_id and url.
vm.facebookUrl = 'https://www.facebook.com/dialog/oauth?client_id=155870204744672&redirect_uri=http://localhost:8888/&expiry=86400&scope=email,user_posts,publish_actions,user_friends,user_status,user_games_activity,user_actions.fitness'To generate the documentation:
- Run
cd www\ - Run
gulp docs:generate
- The documentation should be accessible at www/docs/index.html
You should be ready!
I hope you have fun with this prototype. Please feel free to contact me if you have any questions.
To install protractor
- npm install -g protractor
- Install Java SDK. (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
http://www.protractortest.org/#/tutorial
0.0.1
10 years ago