Giter Site home page Giter Site logo

mjunaidi / f3-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vijinho/f3-boilerplate

0.0 1.0 0.0 969 KB

A skeleton web application project I wrote to learn the Fat-Free Framework and use as a base for future projects. I took some of the ideas from here and at the moment I'm working on my micro-framework called Fargo at https://github.com/vijinho/fargo-php but I will try to keep this up-to-date.

f3-boilerplate's Introduction

f3-boilerplate

My fatfree framework boilerplate MVC website code using html5boilerplate

Setup:

Copy app/config/config.ini.example to config.ini

Edit app/config/config.ini and add anything extra from default.ini for overrides

Setup empty website folders as follows:

mkdir -p tmp/cache tmp/sessions tmp/uploads logs data

sudo chown -fR www-data:www-data tmp logs data

sudo chmod -fR 777 tmp logs data

Layout:

  • vendor - external include files/classes
  • vendor/fatfree - fatfree framework code
  • src - src code for projects used on the site, e.g. html5boilerplate
  • www - website and public doc root (aka public_html or htdocs)
  • app - website application lives outside the webroot for security www/index.php is the default file used by .htaccess for routing
  • app/bootstrap.php - start fatfree by including this file from the webroot or running command-line php against it
  • app/doc - application documentation
  • app/config - application configuration files
  • app/config/vhost - application virtual host configuration files
  • app/classes/models - models
  • app/classes/controllers - controllers
  • app/classes/helpers - useful static helper functions
  • app/classes/cli - command line script classes
  • app/ui/views/error/ - these files are standard php includes, not f3 templates, used by the error handler function
  • app/ui/views/error/debug.phtml - debug error page (if DEBUG=3)
  • app/ui/views/error/404.phtml - 'friendly' file not found page
  • app/ui/views/error/error.phtml - 'friendly' error page
  • data - website data storage
  • logs - webserver and application logfiles
  • tmp/cache tmp/sessions tmp/uploads - temporary files

[email protected]

f3-boilerplate's People

Contributors

vijinho avatar

Watchers

 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.