lactarius / pollcontrol

Poll control example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poll control example

Used technologies
  • Nette framework
  • AJAX realized with pure Nette resources (snippets & subrequests)
  • Designed using Bootstrap 3
  • Assets downloaded & installed with npm, bower & gulp
Obtaining repository

Clone repository first

Install PHP libraries using Composer

composer install

Install Node.js modules & plugins by npm

npm install

Install bower components by bower

bower install

Compile assets by gulp

gulp
Setup

Copy sample config file to new local config

cd src/app/config/
cp config.local.sample.neon config.local.neon

Edit config file and fill Your credentials and change database name, if necessary.

doctrine:
	# for local mysql database
	user: root
	password: root
	dbname: db

Create database using Doctrine command

php src/www/index.php orm:schema-tool:create
OR
./bin/r.sh orm:schema-tool:create

or import structure to Your MySQL server from resources

resources/et_poll.sql

For testing purposes is defaultly disabled checking of IP uniqueness. You can turn on this in main config file config.neon:

parameters:
	international: true
	checkIp: false

changing the checkIp parameter to value true.

About

Poll control example

License:MIT License


Languages

Language:JavaScript 61.2%Language:PHP 29.2%Language:HTML 6.4%Language:ApacheConf 1.7%Language:CSS 0.8%Language:Shell 0.6%