git clone https://github.com/mozilla/webmaker-landing-pages/
cd webmaker-landing-pages
npm install
cp env.dist .env
grunt dev
(this will build the site & launch the local server on port 9006)
- Node.js >= 0.10.0 &
npm
bower
(vianpm install -g bower
)grunt
(vianpm install -g grunt-cli
)- Webmaker Login Server
npm install && cp env.dist .env
- Launch login.webmaker.org
- To run server:
grunt dev
(launch browser, http://localhost:9006/) - Lint before committing. Read-only with
grunt validate
, or take your chances ongrunt
.
grunt
Cleans and verifies code.grunt validate
Read-only version of above.grunt build
Builds the static site in/build/
.grunt dev
Builds the site into a temp directory, watches the folder, and launches the server.
Travis takes care of that ;)
Deploying relies on parallel deploys that both live behind the same CloudFront
distribution. One is the express server that runs here on your local dev, the
other is to an S3 bucket hosting the static pages (the result of grunt build
).
TODO, a potentially incomplete list (see bugzilla [landingpages][techdebt])
- Implement partials for signup forms
- Implement "server-side" makeapi nunjucks rendering of sample makes
- Localisation? (a girl can dream!)
- Test linting and whatnot
- Refactor
grunt watch
&/orgrunt connect:server
to run a little cooler - Re-figure travis deploys
- Decide whether or not to commit compiled site
- Set up server to run in a
.server/
directory without usemin