Skip to content

Instantly share code, notes, and snippets.

@fernandocanizo
Forked from mpmckenna8/index.js
Created March 7, 2017 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandocanizo/6efbd644c21dbe732c8ebe2a01af3b02 to your computer and use it in GitHub Desktop.
Save fernandocanizo/6efbd644c21dbe732c8ebe2a01af3b02 to your computer and use it in GitHub Desktop.
Super simple webpage with budo

This is just a super simple example of using budo on the command line project setup.

So I had done

npm install budo -g

and in this direcotry:

npm install

Just to install d3 which is a dependency in package.json

then on command line

budo .

And it will print to the console where your project is getting served.

// try to do some stuff here
var d3 = require('d3');
d3.select('body').append('text')
.text('hey now thats somethin a webpage without any writing any htmml')
console.log('yoyo')
{
"name": "breadboard",
"version": "1.0.0",
"description": "browser based breadboard",
"main": "index.js",
"scripts": {
"test": "node index.js"
},
"author": "mpmckenna8",
"license": "ISC",
"dependencies": {
"d3": "^3.5.16"
},
"devDependencies": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment