Giter Site home page Giter Site logo

sxsw-2106-node-workshop's Introduction

#SWSX 2016 Node Workshop Project Files

This app has several modules that demonstrate different aspects of building a Node app.

Workshop Details

Deploy

Workshop Outline (headers are tags in repo)

v1.0

  • build barebones app.js
    • #!/usr/bin/env node
    • console.log("Hello World")
  • run hello world app
    • node app.js

v1.1

  • move helloWorld app into services
    • rename to index.js for easier require statements
  • update base app.js to now run services
    • brief interlude on scope
    • how the let variable declaration in the for loop is different
  • again run node app
    • this time the hello world app is running on it’s own
    • the new Hello World service could also be run independently
      • cd services/helloWorld && node index.js

v1.2

  • create new basicWeb service
  • build a base app package.json
    • npm init —yes
  • build a basicWeb package.json
    • cd services/basicWeb && npm init --yes
    • add “main” property so that we can specify the app’s entry point
      • "main": "./app.js",
  • install express in basicWeb
    • npm install express --save --save-exact
  • create app.js for new service, add to main prop in package.js

v1.3

  • add more features to basicWeb service
  • express config and middleware
    • stylus, jade, static files
  • views with global layout
  • basic model using static data, promises
  • use require for json data file
  • discuss shared scope with the static data

v1.4

  • add passport.js integration for local auth
  • unit tests

v1.5

  • refactor file organization a bit
  • use mongoose instead of static data for models
  • update views, routes, etc for register
  • update tests for handling async mongoose calls in tests

v1.6

  • create worker service that pulls jobs from rabbit
  • add cluster to web service
  • add redis sessions

v1.7

  • Setup Heroku settings for deploy
    • Procfile
  • show quick install button setup
    • app.json

sxsw-2106-node-workshop's People

Contributors

snodgrass23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.