michaelfox + node 41
alexeypro/crud-bones · GitHub
5 weeks ago by michaelfox
Sample CRUD application with Node.JS, using MySQL, Mongo and Redis. Basically, I am using it as a boiletplate (template, skeleton) for all new backend apps I start
node
mysql
mongo
redis
boilerplate
github
repo
template
skeleton
crud
5 weeks ago by michaelfox
StyleDocco
11 weeks ago by michaelfox
StyleDocco generates documentation and style guide documents from your stylesheets.
Stylesheet comments will be parsed through Markdown and displayed in a generated HTML document. You can write code examples inside GitHub Markdown code fences (```) or prefixed with 4 spaces in your comments, and StyleDocco both renders the HTML and shows the code example.
The document is automatically split into new sections when it encounters a level 1 or 2 heading. Read more about the heading syntax in the Markdown guide. Only comments at the beginning of new lines are included, so to exclude something from the style guide, put some whitespace before the comment.
If your project includes a README file, it will be used as the base for an index.html. StyleDocco will also add some default styles to your documentation, but they are easy to modify to make it fit with your project.
StyleDocco will automatically compile any SASS, SCSS, Less or Stylus code before it is applied to the page.
css
documentation
reference
tools
node
css3
style
styleguide
Stylesheet comments will be parsed through Markdown and displayed in a generated HTML document. You can write code examples inside GitHub Markdown code fences (```) or prefixed with 4 spaces in your comments, and StyleDocco both renders the HTML and shows the code example.
The document is automatically split into new sections when it encounters a level 1 or 2 heading. Read more about the heading syntax in the Markdown guide. Only comments at the beginning of new lines are included, so to exclude something from the style guide, put some whitespace before the comment.
If your project includes a README file, it will be used as the base for an index.html. StyleDocco will also add some default styles to your documentation, but they are easy to modify to make it fit with your project.
StyleDocco will automatically compile any SASS, SCSS, Less or Stylus code before it is applied to the page.
11 weeks ago by michaelfox
nodejitsu/node-http-proxy - GitHub
april 2011 by michaelfox
Features
Reverse proxies incoming http.ServerRequest streams
Can be used as a CommonJS module in node.js
Uses event buffering to support application latency in proxied requests
Reverse or Forward Proxy based on simple JSON-based configuration
Supports WebSockets
Supports HTTPS
Minimal request overhead and latency
Full suite of functional tests
Battled-hardened through production usage @ nodejitsu.com
Written entirely in Javascript
Easy to use API
javascript
node
proxy
tools
nodejs
Reverse proxies incoming http.ServerRequest streams
Can be used as a CommonJS module in node.js
Uses event buffering to support application latency in proxied requests
Reverse or Forward Proxy based on simple JSON-based configuration
Supports WebSockets
Supports HTTPS
Minimal request overhead and latency
Full suite of functional tests
Battled-hardened through production usage @ nodejitsu.com
Written entirely in Javascript
Easy to use API
april 2011 by michaelfox
remy/inliner - GitHub
march 2011 by michaelfox
Inline PHP Server Running on Node.js
Be worried, be very worried. The name NodePHP takes its name from the fact that we are effectively turning a nice Node.js server into a FastCGI interface that interacts with PHP-FPM.
This is omega-alpha-super-beta-proof-of-concept but it already runs a few simple scripts. Mostly done for my talks on Node.js for PHP Developers this turns out to be quite an interesting project that we are most likely be going to use with Orchestra when we decide to release our Inline PHP server that allows people to run PHP without Apache, Nginx or any webserver.
Yes this goes against all ideas and concepts of Node.js but the idea is to be able to create a web-server directly from any working directory to allow developers to get going even faster than it was before. No need to create vhosts or server blocks ore modify your /etc/hosts anymore.
Synopsis
This node.js module is made for the sole purpose of my conference talk but also to allow developers to get started with PHP even faster than the usual. After installing this node-module, developers need to make sure they have PHP-FPM running somewhere on their system. If it is, they will be able to go to any of their web-directory (that the FPM user has access to) and simply type node php and from there they will see a nice little output that looks like this:
bash$~ PHP Server is now running on port 9001
Incoming Request: GET /test.php
--> Request Response Status Code: "200"
This is going to be running in the browser allowing you to develop and test your applications faster. Hopefully you will end up forking the project and helping out because I do not have enough time to do all I would want to do with this thing.
What?
It allows you to go into a directory, type "node-php" and have a running webserver that serves PHP. Happy?...
Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
Inliner
Turns your web page to a single HTML file with everything inlined - perfect for appcache manifests on mobile devices that you want to reduce those http requests.
What it does
Get a list of all the assets required to drive the page: CSS, JavaScript, images and images used in CSS
Minify JavaScript (via uglify-js)
Strips white from CSS
Base64 encode images
Puts everything back together as a single HTML file with a simplfied doctype
javascript
scraper
archive
node
tools
shell
offline
from instapaper
Be worried, be very worried. The name NodePHP takes its name from the fact that we are effectively turning a nice Node.js server into a FastCGI interface that interacts with PHP-FPM.
This is omega-alpha-super-beta-proof-of-concept but it already runs a few simple scripts. Mostly done for my talks on Node.js for PHP Developers this turns out to be quite an interesting project that we are most likely be going to use with Orchestra when we decide to release our Inline PHP server that allows people to run PHP without Apache, Nginx or any webserver.
Yes this goes against all ideas and concepts of Node.js but the idea is to be able to create a web-server directly from any working directory to allow developers to get going even faster than it was before. No need to create vhosts or server blocks ore modify your /etc/hosts anymore.
Synopsis
This node.js module is made for the sole purpose of my conference talk but also to allow developers to get started with PHP even faster than the usual. After installing this node-module, developers need to make sure they have PHP-FPM running somewhere on their system. If it is, they will be able to go to any of their web-directory (that the FPM user has access to) and simply type node php and from there they will see a nice little output that looks like this:
bash$~ PHP Server is now running on port 9001
Incoming Request: GET /test.php
--> Request Response Status Code: "200"
This is going to be running in the browser allowing you to develop and test your applications faster. Hopefully you will end up forking the project and helping out because I do not have enough time to do all I would want to do with this thing.
What?
It allows you to go into a directory, type "node-php" and have a running webserver that serves PHP. Happy?...
Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
Inliner
Turns your web page to a single HTML file with everything inlined - perfect for appcache manifests on mobile devices that you want to reduce those http requests.
What it does
Get a list of all the assets required to drive the page: CSS, JavaScript, images and images used in CSS
Minify JavaScript (via uglify-js)
Strips white from CSS
Base64 encode images
Puts everything back together as a single HTML file with a simplfied doctype
march 2011 by michaelfox
gist: 579814 - Use one of these techniques to install node and npm without having to sudo- GitHub
december 2010 by michaelfox
Use one of these techniques to install node and npm without having to sudo
install
node
setup
environment
shell
config
permissions
december 2010 by michaelfox
mnutt/hummingbird - GitHub
december 2010 by michaelfox
Real time web analytics using node.js and web sockets — Read more
http://mnutt.github.com/hummingbird
analytics
javascript
node
node.js
tracking
data
tools
resources
websockets
http://mnutt.github.com/hummingbird
december 2010 by michaelfox
gist: 723163 - a simple example of a nodejs http client making a POST request- GitHub
december 2010 by michaelfox
izs: A simple web request example in NodeJS: https://gist.github.com/723163
node
javascript
from instapaper
december 2010 by michaelfox
isaacs's spark at master - GitHub
september 2010 by michaelfox
Spark is a command-line tool used to start up node server instances. It's part of the [Connect][] system, but can be used standalone with any node server.
node
javascript
command
cli
server
tools
environment
september 2010 by michaelfox
Cinderella - A Development Environment for Macs
september 2010 by michaelfox
Cinderella is a fully managed development environment for open source hacking on Mac OSX. It's powered by rvm, homebrew and chef. You only need Xcode to get started.
Cinderella builds everything up in ~/Developer. It won't stomp on any of your current installations so you don't have to commit your entire machine immediately. It's simple to rollback if you really want to.
development
environment
mac
mysql
ruby
python
node
redis
memcache
osx
Cinderella builds everything up in ~/Developer. It won't stomp on any of your current installations so you don't have to commit your entire machine immediately. It's simple to rollback if you really want to.
september 2010 by michaelfox
Multi-node: Concurrent NodeJS HTTP Server | SitePen Blog
july 2010 by michaelfox
This entry is part 7 of 7 in the series Server-Side JavaScript, Pintura, and Persevere 2.0
NodeJS has demonstrated impressive performance potential as an HTTP server. By combining highly optimized HTTP parsing algorithms with the speedy V8 JavaScript engine and using an event-based architecture, Node has posted eye-opening request handling numbers. However, Node historically has been limited by its inability to provide true concurrent request handling, greatly limiting its ability to leverage increasingly multiple core servers. The latest release of Node introduced new functionality for socket sharing that can be coupled with child process spawning to achieve concurrent multi-process request handling for a single TCP socket. Multi-node exists to leverage this capability to make it simple to start up a multi-process Node server.
Multi-node is very easy to use. You simply create an HTTP server object as you would normally do, and rather than immediately calling listen(), you pass it to the multi-node listen function:
node
nodejs
server
admin
environment
NodeJS has demonstrated impressive performance potential as an HTTP server. By combining highly optimized HTTP parsing algorithms with the speedy V8 JavaScript engine and using an event-based architecture, Node has posted eye-opening request handling numbers. However, Node historically has been limited by its inability to provide true concurrent request handling, greatly limiting its ability to leverage increasingly multiple core servers. The latest release of Node introduced new functionality for socket sharing that can be coupled with child process spawning to achieve concurrent multi-process request handling for a single TCP socket. Multi-node exists to leverage this capability to make it simple to start up a multi-process Node server.
Multi-node is very easy to use. You simply create an HTTP server object as you would normally do, and rather than immediately calling listen(), you pass it to the multi-node listen function:
july 2010 by michaelfox
related tags
admin ⊕ analytics ⊕ api ⊕ archive ⊕ arduino ⊕ bash ⊕ blog ⊕ boilerplate ⊕ book ⊕ cli ⊕ code ⊕ collection ⊕ colors ⊕ command ⊕ config ⊕ console ⊕ crud ⊕ css ⊕ css3 ⊕ data ⊕ debugging ⊕ design ⊕ dev ⊕ development ⊕ documentation ⊕ ebooks ⊕ embed ⊕ embedly ⊕ environment ⊕ epub ⊕ events ⊕ example ⊕ examples ⊕ express ⊕ framework ⊕ github ⊕ github-user ⊕ howto ⊕ html ⊕ http ⊕ inspiration ⊕ inspiration:documentation ⊕ install ⊕ jake ⊕ javascript ⊕ jquery ⊕ language ⊕ library ⊕ list ⊕ log ⊕ logging ⊕ mac ⊕ memcache ⊕ mongo ⊕ mongodb ⊕ mysql ⊕ natural ⊕ node ⊖ node.js ⊕ node.module ⊕ nodejs ⊕ npm ⊕ offline ⊕ osx ⊕ parser ⊕ parsing ⊕ permissions ⊕ phantomjs ⊕ php ⊕ pre ⊕ prettify ⊕ pretty ⊕ programming ⊕ proxy ⊕ python ⊕ redis ⊕ reference ⊕ render ⊕ repo ⊕ resources ⊕ ruby ⊕ sample ⊕ scraper ⊕ scripting ⊕ search ⊕ server ⊕ serverside ⊕ setup ⊕ shell ⊕ skeleton ⊕ source ⊕ sphinx ⊕ string ⊕ style ⊕ styleguide ⊕ syntax ⊕ template ⊕ templating ⊕ terminal ⊕ testing ⊕ text ⊕ tidy ⊕ tools ⊕ tracking ⊕ tutorial ⊕ userscripts ⊕ utilities ⊕ webservices ⊕ websockets ⊕Copy this bookmark: