how to get started developing
You'll need git and npm to get started. To test locally you'll also need to run a server (we use python SimpleHTTPServer). Contact us on gittr chat if you have any trouble.
These instructions assume you're using ubuntu or similar linux distro. Windows/mac shouldn't be too different though.
- open a terminal
- download the repo with git:
git clone https://github.com/7yl4r/the-oregon-trajectory
- enter the project directory:
cd the-oregon-trajectory
- install with npm
npm install
You're ready! To build the app use the included ./build.sh
file. This file bundles the javascript/coffeescript & less/css into a bundle.js and bundle.css file for the site html to load. It will also try to start a server on localhost so that you can test out your changes before pushing to the repo. To view the application after building & starting the server just open your browser to localhost:8000.
To review, the workflow here is:
- edit files
- run build.sh
- check your changes on localhost
git add
any new filesgit pull
to check for changes on the remote- resolve any merge conflicts
git commit -a -m 'i did stuff to stuff'
to describe your changes & create a local commitgit push origin master
to push your commit(s) to the github repo
contact us on gitter chat if you have any troubles.