Skip to content

CzechHackathon2014/my-life-style

Repository files navigation

MyLifeStyle - open edition

it's application for save your day activity

Status: executable without tests

We prepare this application on CzechHackathon event.

Who is we?

Honza Cerny https://github.com/chemix Martin Surovcak https://github.com/msurovcak Martin Chapcak https://github.com/manfm Jakub Bouček https://github.com/jakubboucek David Pavliska http://pavliska.com

Installation

1) Clone code from GitHub

clone repository git clone git@github.com:CzechHackathon2014/my-life-style.git

2) Composer

install Composer

download dependencies via composer composer.phar install

3) Permissions

write for folders log and temp

$ chmod -R a+rw temp log

4) SQL

init SQL from app/model/db/init.sql

5) Apache

update your file etc/hosts and add new line

127.0.0.1 mylifestyle.local

apache/virtuals-list

<VirtualHost *:80>
    DocumentRoot "/Sites/mylifestyle/www/
    ServerName mylifestyle.local
    ServerAlias mylifestyle.192.168.1.111.xip.io
</VirtualHost>

5) Facebook

register new Facebook app and update configuration in app/config/config.local.neon

For development

Node

install Node

download dependencies via npm npm install

Grunt

install Grunt

build minimalized script file and stylesheets file grunt

build css from stylus grunt stylus

build css from sass grunt sass

autocompile grunt watch

Bower

yes, we user bower, but for easy development process, we save components to git repository

Tests

create config file for tests from template /app/config/config.test.neon

run Nette\Tester vendor/bin/tester tests

or way with helper file, create in root folder new file "run_tests"

for example if You use XAMPP on Mac:

#! /bin/bash
vendor/bin/tester tests -w tests -p /Applications/XAMPP/bin/php

or with watch whole application

#! /bin/bash
vendor/bin/tester tests -w ./ -p /Applications/XAMPP/bin/php

or with clear cache folders before run tests

#! /bin/bash
rm -R ./tests/temp/cache
mkdir ./tests/temp/cache
vendor/bin/tester tests -w tests -p /Applications/XAMPP/bin/php

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •