Athletics created Make/Model as an environment for building prototypes.
As the web has changed, our process for designing websites has changed. Necessitated by the responsive nature of today’s web, we strive to get out of PSDs and into the browser as early in the process as possible. This allows us to build for the constraints of the multi-device web early in our design process.
Make/Model is written in PHP using the Silex microframework and the Twig templating engine.
Install Make/Model using Composer.
An example composer.json would look like:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/athletics/make-model"
}
],
"require": {
"athletics/make-model": "dev-master"
},
"minimum-stability": "dev"
}Then you can run composer install.
Make/Model integrates with third-party APIs to use as sources for content. This removes the work of setting up representative content, passing it off to a CMS, and allowing for the reuse of content across projects.
Currently Squarespace is the only supported datasource, but several others are in the works. Pull requests for new datasources are welcome.
- Squarespace - Squarespace features simple authentication and a JSON endpoint for every URL.
- WordPress.com REST API - Access data from WordPress.com blogs, uses OAuth 2.0 for authentication, also available in the Jetpack for WordPress plugin.
- WP-API - Native WordPress JSON API, on the WordPress 4.1 roadmap to be integrated into WordPress core.
For more information on how the WordPress.com REST API and WP-API differ, see the WP-API documentation.
Copy the base-project directory into your project.
cp -r /path/to/vendor/athletics/make-model/base-project/ /path/to/my-cool-project/Copy the example config file config.example.php as config.php and fill in the values.
An Athletics Project.
@jamesellisnyc, @redred, and @matthewspencer. Honorable mention @cpl593h.