A very basic project template. Requirements: node, npm, php 5.4+
-
Clone into whatever you want to call your new project, e.g. "banana-bot"
$ git clone [email protected]:johnshopkins/project.git banana-bot
-
cd into your new project directory
$ cd banana-bot
-
Install gulp globally, if you don't already have it
$ which gulp || npm install -g gulp
-
Install node packages
$ npm install
-
Start web server on your favorite port, e.g. 4000
$ php -S localhost:4000 -t public/
-
In a new terminal tab, run the gulp watch command
$ gulp watch
-
Open to http://localhost:4000 in your favorite browser
-
Scoop up the mountains of money and awards and medals bestowed upon your head on account of your new and great success.
- Only edit files in the
src
directory. - ONLY EDIT files in the
src
directory! - Any files you put in
src/pages
should be in "pagemaki style", with some YAML front matter a la Jekyll. They'll be built and dropped into whatever layout you define at the top of the file, and the system will look for that layout atsrc/layouts/{name}.html
- The files you put here in
src/pages
will be built intopublic
directly, sosrc/pages/index.html
will end up inpublic/index.html
- The files you put here in
- Any files you put in
src/static
will be built into thepublic
root also. Don't have files here that match the relative path of a file insrc/pages
or you will have pain - Only edit files in the
src
directory