Giter VIP home page Giter VIP logo

nodeintro's Introduction

Node.js Introduction.

package.json

Contains the npm info. Run npm install to install the dependencies.

config.json

The secret key that allows you to act as the speaker, the hostname and port. Make a copy of config.js.example and edit it, then run node build, then node app. To become the speaker, run document.cookie = "key=KEY"; in a terminal and reload. (KEY is the key you set in config.json)

Alternatively you could just view index.html directly in the browser without the server. Run Slides.unlock(); in a JavaScript terminal and then you can advance the slides without becoming the speaker.

build.js

Use node-markdown to convert slides.md to html and then replace {{slides}}, {{host}} and {{port}} in template.html with that and save to index.html. Run it with node build.

index.html

The slideshow generated by build.js. Visit http://HOST:PORT/ to view.

app.js

The socket.io-backed server-side portion of the app that advances the slides. Run it with node app.

slides.md

Just some h1, ul, li, a, strong, em and code tags in markdown that make up the content of the presentation. Each h1+ul group becomes a "screen" and each h1 or li tag becomes a "step".

template.html

The html boilerplate that surrounds the slides.

slides.js

Client-side code for changing the slides.

slides.css

The stylesheet.

nodeintro's People

Contributors

lerouxb avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.