Setup

Deploying to Heroku using the Heroku Button

You can deploy your own version of TD-Nibs in seconds using the Heroku button below:

Deploy

Deploying to Heroku using the Command Line

You can also deploy Nibs to Heroku using the command line:

  1. Clone the repository

    git clone https://github.com/treasure-data/td-nibs
    
  2. Create a Heroku application

    cd td-nibs
    heroku create
    
  3. Install the Postgres plugin

    heroku addons:add heroku-postgresql:dev
    
  4. Install the Treasure Agent plugin

    heroku addons:create treasure-data:trial
    
  5. Deploy to Heroku

    git push heroku master
    
  6. Run the the application:

    • Open the application in a browser:

      heroku open
      
    • Click the Signup button to create an account

Installing a Local Version

You can also install Nibs on your local machine:

  1. Clone the repository

    git clone https://github.com/treasure-data/td-nibs
    
  2. Install the server dependencies

    cd td-nibs
    npm install
    
  3. Create a local database

    • Install and start Postgres on your local machine
    • Create a database called nibs
    • If your database is available using postgres://@127.0.0.1:5432/nibs, you have nothing else to do
    • If you use another database URL, either define a shell environment variable called DATABASE_URL, or modify server/config.js to provide your own default URL
  4. Start the server

    node server
    
  5. Run the application

    • Open a browser and access the following URL: http://localhost:5000
    • Click the Signup button to create an account