You can deploy your own version of Nibs in seconds using the Heroku button below:
You can also deploy Nibs to Heroku using the command line:
Clone the repository
git clone https://github.com/heroku/nibs
Create a Heroku application
cd nibs
heroku create
Install the Postgres plugin
heroku addons:add heroku-postgresql:dev
Deploy to Heroku
git push heroku master
Run the the application:
Open the application in a browser:
heroku open
Click the Signup button to create an account
Facebook login won't work until you complete the Facebook integration steps described below.
You can also install Nibs on your local machine:
Clone the repository
git clone https://github.com/heroku/nibs
Install the server dependencies
cd nibs
npm install
Create a local database
Start the server
node server
Run the application
Facebook login won't work until you complete the Facebook integration steps described below.
Create a Facebook application
Change the Nibs configuration to use your Facebook app
Push the change to Heroku
Follow the instructions below to run the application as an app on your device:
Install Cordova:
npm install -g cordova
On a Mac, you may have to use sudo:
sudo npm install -g cordova
Create the cordova application
cordova create nibs-shell com.nibs.loyalty Nibs
Adjust the contents of the www folder
Either copy the contents of nibs/client into nibs-shell/www or delete www folder in nibs-shell and create a symbolic link to nibs-shell/www.
For example, on a Mac:
cd nibs-shell
rm -rf www
ln -s [path-to-nibs]/client www
Install the Cordova plugins
Make sure you are in the nibs-shell directory and type:
cordova plugins add org.apache.cordova.device
cordova plugins add org.apache.cordova.console
cordova plugins add org.apache.cordova.statusbar
cordova plugins add org.apache.cordova.geolocation
cordova plugins add org.apache.cordova.dialogs
cordova plugins add org.apache.cordova.inappbrowser
Add a platform
For example, to add the iOS platform, type:
cordova platforms add ios
Build the project
For example, to build for the iOS platform, type:
cordova build ios
Run the app in the emulator or on your device. For example, for iOS, open the project (platforms/ios/Nibs.xcodeproj) in Xcode and run it in the emulator or on your iOS device.