GithubHelp home page GithubHelp logo

expressexample's Introduction

Express Example

To start out make sure you've got node installed. An easy way to do this is to install NVM (Node Version Manager). This will make installing node easy peasy.

curl https://raw.github.com/creationix/nvm/master/install.sh | sh
or
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh

You will probably have to start a new terminal window since this modifies your bashrc file.

nvm install v0.8.9

This will automatically download and compile that version of node.

Once its installed lets clone this repo we're in. (Or pull in that folder if you've already got it)
git clone [email protected]:SyntaxSimian/JadeNodejsDemo.git

Now we need to install the node modules this project requires, since I've setup a package.json file this is really simple.
npm install

This automatically installs the requirements for the project.

Next we're going to try running the project, this can be done by running node app.js unless you are on a system that blocks access to port 80, in that case use sudo.


The server should now be running, all you need to do is hit this box on a web browser and you can see the example pages. These are:

  • / (home)
  • /json (json example)
  • /auth (authentication, use test:test)
  • /anythingElse (404 example)

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.