MooTools Website - move fast and break things
JavaScript CSS HTML Shell
Switch branches/tags
Nothing to show
Latest commit 7874b19 Jan 31, 2017 @timwienk timwienk merge: Removal of KissMetrics leftovers.
Closes #234.
Permalink
Failed to load latest commit information.
blog Change a few occassions of http://mootools.net to https://mootools.net. Jan 31, 2017
books Remove mad4milk.net references (Valerio no longer owns the domain). Jan 31, 2017
build Remove mad4milk.net references (Valerio no longer owns the domain). Jan 31, 2017
builder Change a few occassions of http://mootools.net to https://mootools.net. Jan 31, 2017
cache Fixes #32 - Make build output directory configurable Jun 22, 2013
config Change nginx config to use port 443 and SSL certificate, redirect htt… Jan 31, 2017
core Use relative paths in guides as well. Jan 31, 2017
design design aditions Oct 31, 2014
developers Update personal websites (as far as I'm aware of them). Jan 31, 2017
lib Add some basic logging functionality for "service.js". Sep 20, 2015
middleware update twitter dependency now with error argument in callback Feb 8, 2016
more Use relative paths in guides as well. Jan 31, 2017
public Fix favicons. Nov 5, 2014
tests Rename middleware/buildHash - fix when the hash was not in the database Nov 11, 2014
views remove rest of KissMetrics Jan 31, 2017
.gitignore Add some basic logging functionality for "service.js". Sep 20, 2015
.jshintignore remove parts that are not used anymore Sep 13, 2014
.jshintrc Get blog data from a separate reusable module with a new waitForIt. Nov 16, 2013
README.md update read with keys option Jul 11, 2015
index.js add "redirect: false" to prevent redirect loop Jan 31, 2017
package.json update twitter dependency now with error argument in callback Feb 8, 2016
service.js Add some basic logging functionality for "service.js". Sep 20, 2015

README.md

Installation

To install everything you need to clone the repository and submodules (for the docs), install dependencies, build the documentation and run the server:

	git clone git://github.com/mootools/website.git
	cd website
	npm install
	cp config/api_keys.sample.json config/api_keys.json
	cp config/databases.sample.json config/databases.json
	node build/all # optional "--add-keys" to update api_keys.json
	node index

Notes:

  • Some dependencies use native C code which requires some compiler.
    • For Mac users this means that Xcode (Command Line Tools) should be installed.
    • For Windows you need python (2.7, and don't forget to add it you your %PATH%) and a C++ compiler like Visual Studio Express

Run it

To run it, you can either use node directly.

	node index

Now the website is running on http://localhost:3000.

Alternatively use forever or use supervisor. supervisor watches all files, while wrapup/stylus write to the public folder. It is advised to use supervisor --ignore public index.

Like to help?

We have a Trello board that you can follow and comment on. Also you can find opened issues and create pull requests.

Folder structure

  • /index.js, is the main file, you can find everything from there
  • /views is where all the views and uncompiled js/css is
  • /public is where compiled css/js is saved. Also contains other things like images or fonts
  • /{core,more} is where the routes of those projects are defined also the source files (markdown) of the guides/tutorials
  • /blog is where the routes and blogposts are stored
  • /{middleware,lib} are some library/helper modules
  • /tests is where some unit tests for some modules are located
  • /design contains some .ai files and other design specifications
  • /builder is for the wrapup web UI front-end
  • /build contains build scripts for the blog/guides and more
  • /cache is where the output of the build scripts is stored

Adding new release of project (untested as of 2014-11-04)

	node build/release [project] [tag]

this command should update the package.json configuration fields. After that doing as node build/all will clone the repository and build docs etc.