Permalink
Browse files

[v2] first working commit

  • Loading branch information...
dscape committed May 10, 2012
1 parent 044f0a0 commit ca6e45efcd231b3962154cdefc9b2d39806d1290
Showing 1,001 changed files with 26 additions and 87,761 deletions.
View
@@ -1,26 +1,5 @@
-# Install
-Remember to have a proper PATH setup with support for binaries installed in ./node_modules.
-Do so by adding:
+# Start
- export PATH="./node_modules/.bin:$PATH"
-
-to your environment configuration files (eg: ~/.bashrc).
-
- $ npm install
- $ blacksmith generate && blacksmith preview
-
-Access [http://localhost:8080](http://localhost:8080).
-
-See [https://github.com/flatiron/blacksmith](https://github.com/flatiron/blacksmith) for more info
-
-# Edit
-
-Each directory under pages is a page composed by a content.md and a page.json file.
-
-Before deploying, run blacksmith generate to generate the static files under public/
-
-To edit the layout: edit the file theme/article.html.
-
-If you edit any of these you will need to restart the server.
-
-CSS: theme/css/lxjs.css
+``` sh
+node app.js
+```
View
8 app.js
@@ -0,0 +1,8 @@
+var Static = require('node-static')
+ , file = new(Static.Server)('./static');
+
+require('http').createServer(function (request, response) {
+ request.addListener('end', function () {
+ file.serve(request, response);
+ });
+}).listen(8080);
View
@@ -1,8 +0,0 @@
-{ "_id": "trodrigues",
- "name": "Tiago Rodrigues",
- "email": "tmcrodrigues@gmail.com",
- "github": "trodrigues",
- "twitter": "trodrigues",
- "location": "",
- "bio": ""
-}
View
@@ -1,12 +0,0 @@
-var HTTPServer = require('http-server').HTTPServer;
-
-var httpServer = new HTTPServer({
- root: './public/'
-});
-
-httpServer.listen(process.env.PORT || process.env.C9_PORT || 8080);
-
-process.on('SIGINT', function() {
- httpServer.log('http-server stopped.'.red);
- return process.exit();
-});
View
@@ -1,4 +0,0 @@
-{
- "tags": [
- ]
-}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit ca6e45e

Please sign in to comment.