Clone webmaker.org and enter the directory: git clone https://github.com/mozilla/webmaker.org && cd webmaker.org
Install webmaker.org’s Node and Bower dependencies: npm install
Copy the configuration template to its expected location: cp env.dist .env
Open .env in your favourite text editor and ensure that your PORT, MAKE_ENDPOINT, LOGIN and LOGINAPI environment variables are set to the correct values. PORT can be any available port. MAKE_ENDPOINT, LOGIN and LOGINAPI should point to the URL of your running MakeAPI and Webmaker Login service instances.
Run grunt dev, and open up http://localhost:7777/ in your favourite web browser!
Grunt Tasks
grunt - Validate LESS, beautify and lint JS, compress images as needed. Run before you push.
grunt dev - Run the server and build js files as they are changed
grunt verify - Verify LESS and JS are formatted and lint free. Read only. Used by Travis.
Localization
To add a new language simply add a directory with a locale code under the locale directory with a JSON file(s) for your strings for example:
locale/id_ID/strings.json
You also need to make sure you enable the language in your config by changing the value of SUPPORTED_LANGS
This project is no longer under active development.
Read about why, here: https://blog.webmaker.org/whats-next-for-webmaker-tools
webmaker.org
TLDR; if you’ve done this before
Development
git clone https://github.com/mozilla/webmaker.orgnpm installcp env.dist .envgrunt dev(Builds front end js. If you aren’t working on front end assets you can just donode app)Submitting PRs
grunt(validate and compress images)mozilla/masterNew Contributors
Please review our contributing guidelines here.
Dependencies
The setup portion of this README assumes you have the following installed:
npm install -g bowernpm install -g grunt-cliYou should also have these Webmaker stack applications running:
Project Setup
git clone https://github.com/mozilla/webmaker.org && cd webmaker.orgnpm installcp env.dist .env.envin your favourite text editor and ensure that yourPORT,MAKE_ENDPOINT,LOGINandLOGINAPIenvironment variables are set to the correct values.PORTcan be any available port.MAKE_ENDPOINT,LOGINandLOGINAPIshould point to the URL of your running MakeAPI and Webmaker Login service instances.grunt dev, and open uphttp://localhost:7777/in your favourite web browser!Grunt Tasks
grunt- Validate LESS, beautify and lint JS, compress images as needed. Run before you push.grunt dev- Run the server and build js files as they are changedgrunt verify- Verify LESS and JS are formatted and lint free. Read only. Used by Travis.Localization
To add a new language simply add a directory with a locale code under the
localedirectory with a JSON file(s) for your strings for example: locale/id_ID/strings.jsonYou also need to make sure you enable the language in your config by changing the value of
SUPPORTED_LANGS