igemuottawa / igem-bricklayer

Layin ma bricks
0 stars 2 forks source link

iGEM Bricklayer

Layin ma bricks!

Note

The commands below are meant to be run in a terminal; which should be easy enough to access if you're using a mac or a linux distribution. Using Windows will be a little trickier. You'll have to install a terminal-like program. The Windows installer of Git comes with a terminal called git-bash. This should be enough to run these commands though you'll have to do some configuring so that the terminal is able to find the node program.

Alternatives:

First Run

If this is your first run of the server, we have to make sure the dependencies are installed:

  1. Install node.js! This will come with an executable called npm (Node Package Manager) that we'll use to install the dependencies.
  2. Install node-supervisor with the command npm install -g supervisor. This supervisor app will automatically restart the server whenever a file in the project changes. Makes developping a little smoother.
  3. If you're on Windows, install MSYS to a path without spaces. MSYS provides some unix tools like make and bash, which make development much easier. Make sure the MSYS tools are in your PATH. MSYS tools work with git.
  4. Make sure you're in the same directory as packages.json and run the command npm install. This will install dependencies like express (our webserver), jade (an html template language), etc. into our project in the node_modules folder.

Start App

To start the server run the command make go

Visit http://localhost:3000/ in your browser to see the app. See the Makefile to add more targets as you see fit.

Directory Structure

This should give an idea of how the code is structured.

Some stuff to Read