GithubHelp home page GithubHelp logo

raruto / cockpit-blog Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 60.58 MB

Simple blog implementation with a router

License: MIT License

PHP 65.10% Hack 9.52% JavaScript 13.74% XSLT 1.99% CSS 9.64%
cockpit blog starter php router mongodb phpmailer markdown tinymce rest-api

cockpit-blog's Introduction

cockpit-blog

Simple blog implementation with a router

The Untouchables


Initially based on cockpit-docs/tutorials/simple_blog.md


Quickstart:

  1. Download and extract: https://github.com/raruto/cockpit-blog/archive/master.zip
  2. Move it to your localhost server and open: http://localhost/cockpit-blog/install
  3. Your website is now available at: http://localhost/cockpit-blog

How to develop:

Public stuffs are located at project web root (_site, css, js and media folders).

  • Theme: php template files are located in the _theme/views folder.

  • Assets: static theme files are located at project web root (css, js, media folders).

  • Router: public site routes are defined in the root index.php file.

  • Images: uploaded images are located in the media/uploads folder.

  • Database: files are located in the _site/data folder.

  • Addons: cockpit addons can be placed in the _site/addons or admin/addons folders (according to your needs).

  • Config: common configuration files are located in the _site/config folder, default constants are overridable in through the _site/defines.php file.

  • Cockpit: core files are located within the admin folder, you can rename it to something less "common" (without pain), but you shouldn't edit any other files inside that folder (unless you know what you're doing).

Open a shell at project web root and run: php -S localhost:8080 index.php for starting the built-in development server.

Cockpit Core:

The following components are shipped by the CMS:

Note: although cockpit take advantage of the "MongoDB" query language, it doesn't really need a MongoDB server to operate and, unless configured otherwise, it stores all information as json documents within the built-in SQLite database located in the cockpit/storage/data folder (see: MongoHybrid, MongoLite and bootstrap.php for further information). Check out the cockpit-sql-driver integration if you are planning to use a MySQL, MariaDB or PostgreSQL server instance.

Cockpit Core (Modules):

The following classes are part of the cockpit core:

Note: take a look at the following SQL to MongoDB comparison to fully understand the difference between "collections" and "tables"

Cockpit Addons:

The following plugins are bundled in this repository:

Note: take a look at the Cockpit-Helpers and Cockpit-Scripts repositories to find out some other useful code samples on how to build your own addons (see also: list-of-cockpit-addons).

Translating cockpit (i18n):

Download and copy appropriate language files from:

After that you will be able to change the language of Cockpit from the accounts panel (admin dashboard).

Note: check out the i18n and languages directives if you wish to set a default language for all users (see: zeraton-docs to understand how to edit cockpit config files)

Upgrading cockpit (Core):

Backup your admin/defines.php file and replace the admin folder with your cockpit-next release.


Useful links
Screenshot

Blog Article

Implementation notes

Already Implemented:

Next Steps:

  • Multilingualism (eg. through a catch-all route: $app->run('/*'))

Special thanks to: Artur Heinze, Paulo Gomes and Raffael Jesche

Related projects: Copilot, Monoplane, CpMultiplane

Compatibile with: Cockpit CMS

cockpit-blog's People

Contributors

raruto avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

arqb-dev

cockpit-blog's Issues

Cockpit installer script

Hello!

I'm trying install this rep but got this page when try the /cockpit-blog/install
image

tryed composer install and finish without erros, but when i back to /cockpit page, got "Cockpit not installed"
Can u help me?

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.