Giter VIP home page Giter VIP logo

chucknorris's Introduction

Quick Start

Update the template folder files to reflect the latest html5boilerplate release (if required)

Don't forget to move the 404.html file to /templates

Database

Create a MySQL database for the project and add the name to the $db variable in:

/includes/common/dbconnector.php

$db   = 'database_name';

Install initial.sql from /database

Folder permissions

Ensure /cache, admin/cache and /mobile/cache all have write permissions.

Adding URLs

By default "home" is ready to use and edit.

To add further URLs to the site you must add them to the index.php file $valid_paths array:

$valid_paths  = array('home',
                      'blog',
                      'news',
                      );

Add corresponding template files for each new page to the /templates folder as .html naming the file the same as the route.

This template file should be structured as below:

{% extends "base.html" %}

{% block content %}
<body>
  <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
  <header>

  </header>
  <div role="main">

  </div>
{% endblock %}

Previously, you had to add frontend and backend model and view files when adding new URLs. Chuck Norris now auto-generates these files and installs the basic requirements to load the pages.

Models need to be built to include data to send to the template files (documentation coming soon) but this should be enough to enable the creation of static templates ready to be made dynamic by the backend team.

Mobile

The mobile site follows the same setup as above (but if the mobile site is hosted in the same directory as the main site, the database is shared).

However, you still need to edit:

/mobile/includes/common/dbconnector.php

With your database name as below...

$db   = 'database_name';

chucknorris's People

Contributors

rikkipitt avatar

Watchers

 avatar  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.