GithubHelp home page GithubHelp logo

salaros / mr-press Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 171 KB

Mr. Press is a WordPress development stack similar to Bedrock. Project's main goal is to improve the overall security, portability and deployment process of WordPress, while trying to use the best web development practices.

License: MIT License

PHP 100.00%
wordpress wp-cron bedrock composer timber theme wordpress-development wordpress-deployment wordpress-installation wordpress-plugin

mr-press's Introduction

Mr. Press

Latest Stable Version Packagist type Packagist downloads License Gitter

SensioLabs Insight Build Status Dependency Status composer.lock

Mr. Press is a WordPress development stack similar to Bedrock. Project's main goal is to improve the overall security, portability and deployment process of WordPress, while trying to use the best web development practices.

Features

  • WordPress, its themes and plugins are installed and updated via Composer!
  • wp-content folder has been relocated, so it won't mess up with WordPress core
  • Critical WordPress settings (such as site URL, database credentials etc) are loaded from the environment variables
  • WP Cron is disabled by default and there is a ready-to-use cron job to run

Mr. Press default theme's features

  • Bootstrap responsive layout
  • Clean templates using Twig templates via Timber plugin
  • A lot of customizations can be done directly from code:
    • define menus (links to page, custom links, nested items etc)
    • add / remove custom post types and taxonomies
    • handy access to Bower and NPM assets
  • Integration with Advanced Custom Fields plugin (group fields can be registered from theme code) and used via Timber

Requirements

Make sure that Composer and the rest of the requirements are installed.

Installation

Just go the web root folder (usually it's /var/www) and create your copy of the project:

$ cd /var/wwww
$ composer create-project salaros/mr-press my-new-website

Create WordPress tables

Now change to /var/www/my-new-website directory and edit the .env file and chnage DB connection settings and site URL:

$ cd /var/www/my-new-website
$ editor .env
$ composer run-script initialize

Create cron job

Since WP Cron is disabled by default you'd better run the commands below in order to enable a system cron job which triggers WP Cron every 5 min:

PLEASE NOTE: create-cron-job requires administrator privileges, so you should run it as root (super user) or sudoer user.

$ cd /var/www/my-new-website
$ composer run-script create-cron-job

Contributing

  1. Fork it: https://github.com/salaros/mr-press
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request ๐Ÿป

Known bugs

  • Mr. Press has been tested on Linux and might also work correctly on Mac OS X. Windows compatibility will be implemented later
  • Most likely Mr. Press is not compatible with WordPress multisie, but this feature has been already added to the RoadMap

License

The MIT License (MIT). Please see License File for more information.

Credits

TODO: Write credits

mr-press's People

Contributors

prisis avatar salaros avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mr-press's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.