No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
puphpet
src/CodrPress
tests
travis
views
web
.gitignore
.htaccess
.travis.yml
LICENSE
README.md
REST-API.md
Vagrantfile
admin.php
app.php
app_admin.php
circle.yml
composer.json
composer.lock
console.php
index.php
phpunit.xml

README.md

Introducing CodrPress

Build Status

A lightweight blogging system for software developers

Inspired by Schnitzelpress

CodrPress is still in an early development phase.

CodrPress is build on top of Silex and Mango.

Write your blog posts in Markdown. Thanks to Amplifyr CodrPress features a beautiful syntax highlighting for most languages.

The default design is based on Twitter Bootstrap and fully responsive. The templates are written HAML and easily customizeable. Don't like HAML? You can also use Twig.

Requirements

  • PHP 5.4
  • MongoDB 2.*
  • MongoDB driver for PHP (min. 1.2.0)
  • Composer

Setup

Clone the repository

$ git clone git@github.com:MadCatme/CodrPress.git

Install the dependencies with Composer

$ cd CodrPress
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

If you want to run the unit tests, please install the developer dependencies:

$ php composer.phar install --dev

Configure CodrPress

$ php console.php config

Create a user

$ php console.php user:create <username> <mail address>

Administration

Goto http://yourdomain.com/admin/posts in your browser and login with the user you just created.

To create a post, enter a publish date. Leave it blank if you want to create a page.

The publish date can parse any date format supported by PHP, f.e. now, yesterday, +1 day, Monday next week and many more.

At the moment you can not delete a post. For now just set the status to draft to hide a post.

Local testing without a web server

php -S localhost:1337 -t .

Open http://localhost:1337 in your browser.

Common problems

  • Check if the cache directory is writable for the web server user (please never use chmod 777!)