Skip to content

flexroad/gritbox

 
 

Repository files navigation

Gritbox - a Nette project starter

Gritbox is a pre-packaged and pre-configured Nette Framework application that you can use as the skeleton for your new applications.

Goal is to create a skeleton with using best practices - DI, Services, Components, etc.

It is based on these technologies:

  • PHP
  • Nette (PHP framework)
  • Bootstrap (CSS framework)
  • Grunt (Javascript Task Runner)
  • LESS (CSS pre-processor)
  • jQuery (Javasript framework)
  • Bower (Package manager)

Features

  • Basic user account managing: Login, Register, Reset password
  • ACL (Access Control List) defined in config.neon and annotations
  • Flashmessage UX (stay always visible)
  • Modules (Front, Admin)
  • Services: EmailService
  • Development tools:

Installing

The best way to install Gritbox is using Composer. If you don't have Composer yet, download it following the instructions. Then use command:

	composer create-project gritbox/gritbox my-app
	cd my-app

Make directories temp and log writable. Navigate your browser to the www directory and you will see a welcome page. PHP 5.4 allows you run php -S localhost:8888 -t www to start the web server and then visit http://localhost:8888 in your browser.

It is CRITICAL that whole app, log and temp directories are NOT accessible directly via a web browser! See security warning.

Grunt and Grunt plugins are installed and managed via npm, the Node.js package manager. So be sure, you have them installed. Also, you have to have installed Grunt and Bower.

After you have Gritbox downloaded by Composer, run

npm install

which will install all Grunt packages into node_modules directory.

Then run

bower install

which will install CSS and JS libraires into www/components directory.

Import basic database structure from /database/database.sql dump.

License

About

Nette project starter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 51.8%
  • HTML 41.7%
  • CoffeeScript 2.5%
  • ApacheConf 2.0%
  • JavaScript 1.5%
  • CSS 0.5%