Git Product home page Git Product logo

mbp's Introduction

MBP

Minimal Blogging Platform is a Blogging tool built off of PHP. It uses Git as it's user authentication where in the owner of the blog is to make a repository in the storage to add posts. The posts are written as markdown files within the posts folder. MBP then parses that folder to populate the posts and individual post page. It has no commenting capibilties, DB, editor, or admin panel to speak of. But it manages posts effeciantly for someone who knows git and markdown.

The required folder structure of an individual blog (using storage as it's root folder) is as follows.

  • /css/
  • /fonts/
  • /img/
  • /js/
  • /posts/
  • index.php
  • post.php

The css, fonts, img, and js folders are all symbolically linked to the public folder and therefore accessable within the DOM. The posts folder is what is to be populated with posts in markdown files (see below of an example of a post file. The index.php is what any route that doesn't resolve to a post will point to, in which a posts() function will be made availble that echos out an <ul> of posts followed by their modified dates. And finally post.php is what every route that does resolve to a post file in which a $post object will be made availible with a 'title', 'modified', and 'body' field.

An example of a post file is /posts/this-is-a-post.md where MBP would parse out "This is a Post" as the title, the files modification date as its modified field (parsed into the format YYYY-MM-DD), and the contents of the file as it's body.

View blog.tjt.codes for an example.

mbp's People

Contributors

tjtorola avatar

Watchers

 avatar James Cloos avatar

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.