Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to bootstrap 3; upgrade to smarty 2.6.28; upgrade to newest vers... #26

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
662adf4
upgrade to bootstrap 3; upgrade to smarty 2.6.28; upgrade to newest v…
Jan 27, 2014
7702a9d
upgrade to bootstrap 3; upgrade to smarty 2.6.28; upgrade to newest v…
Jan 27, 2014
46b3d8b
Merge branch 'master' of github.com:cooperhewitt/flamework
copea Jan 27, 2014
c5a8387
massage all the signup/in forms for bootstrap3
thisisaaronland Apr 26, 2014
1ac2365
autoload_libs_if_enabled
thisisaaronland May 1, 2014
6a16764
add fonts; tweak navi
thisisaaronland May 5, 2014
d3ba906
lots more timings; switch to also including config.php and moving sec…
Jun 10, 2015
cf48871
remove example config file
Jun 10, 2015
0250209
oops...deleted general utility functions
Jun 10, 2015
449708c
oops...deleted general utility functions
thisisaaronland Jun 10, 2015
72d177a
Merge branch 'master' of github.com:straup/flamework
thisisaaronland Jun 10, 2015
50e1384
just use init_local
thisisaaronland Jun 11, 2015
cdcc7f4
modify lib_auth to allow for local auth users hash in config; needs b…
thisisaaronland Jun 13, 2015
e352daa
jquery 2.x
thisisaaronland Jun 13, 2015
78d93a4
use auth_has_role
thisisaaronland Jun 13, 2015
e946072
Merge branch 'master' of github.com:exflickr/flamework
thisisaaronland Jun 13, 2015
05cb126
use auth_has_role; comments
thisisaaronland Jun 13, 2015
7c0b2d1
ensure update id
thisisaaronland Jun 13, 2015
f3f503f
options to set ssl_ciphers and user agent; include curl error in resp…
thisisaaronland Jun 13, 2015
0df1eb0
update lib crypto to die rather than try to invoke templates before l…
Jun 16, 2015
c950c87
set server scheme correctly; remove CH-specific comments
Jun 16, 2015
1dc7645
login check login because yeah...
Jun 16, 2015
efef48c
Merge pull request #1 from thisisaaronland/master
straup Jun 17, 2015
7aa655d
adds support to use a proxy server
Jun 17, 2015
22c6c71
Merge pull request #1 from cooperhewitt/proxy-support
straup Jun 18, 2015
d63b72e
fix link to flamework-tools
micahwalter Jul 3, 2015
6fa73a3
Merge pull request #2 from cooperhewitt/copy-edits
straup Jul 6, 2015
7ea812a
adding dockerfile
micahwalter Jan 11, 2016
1579c84
vagrant, docker, etc.
micahwalter Jan 23, 2016
c4fd80e
starting to work out our docs
micahwalter Jun 1, 2016
ca4943d
added baseurl
micahwalter Jun 1, 2016
d804ef7
fixing links for new docs
micahwalter Jun 1, 2016
6ab3b96
new docs
micahwalter Jun 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*~
*#
.git/*
.vagrant/*
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*~
www/include/config.php
.DS_Store
.vagrant
www/include/secrets*.php
tests/coverage.state
coverage/
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:14.04
MAINTAINER Micah Walter <[email protected]>

# Install base packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install \
curl \
apache2 \
libapache2-mod-php5 \
php5-mysql \
php5-mcrypt \
php5-gd \
php5-curl \
php-pear \
php-apc && \
rm -rf /var/lib/apt/lists/* && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN /usr/sbin/php5enmod mcrypt
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini

ENV ALLOW_OVERRIDE **True**

# Add image configuration and scripts
ADD build/docker/run.sh /run.sh
RUN chmod 755 /*.sh

# Configure /app folder with sample app
RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html
ADD www/ /app

EXPOSE 80
WORKDIR /app
CMD ["/run.sh"]
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ piece of the puzzle, please send a pull-request.

That's it.

For a longer version, read the <a href="/docs/install_base.md">installation guide</a>.
For a longer version, read the <a href="http://cooperhewitt.github.io/flamework/articles/install_base">installation guide</a>.

If you'd like to use Flamework as an external library, <a href="/docs/install_external.md">read this</a>.
If you'd like to use Flamework as an external library, <a href="http://cooperhewitt.github.io/flamework/articles/install_external">read this</a>.

To install Flamework on AppFog.com, <a href="/docs/install_appfog.md">read this</a>.
To install Flamework on AppFog.com, <a href="http://cooperhewitt.github.io/flamework/articles/install_appfog">read this</a>.


##Global Variables
Expand All @@ -47,10 +47,10 @@ Some libraries use their own globals internally, usually prefixed with `LIBRARYN

## Other documentation

* <a href="/docs/troubleshooting.md">Troubleshooting</a>
* <a href="/docs/philosophy.md">Design Philosophy</a>
* <a href="/docs/database_model.md">Database Model</a>
* <a href="/docs/style_guide.md">Style guide</a>
* <a href="http://cooperhewitt.github.io/flamework/articles/troubleshooting">Troubleshooting</a>
* <a href="http://cooperhewitt.github.io/flamework/articles/philosophy">Design Philosophy</a>
* <a href="http://cooperhewitt.github.io/flamework/articles/database_model">Database Model</a>
* <a href="http://cooperhewitt.github.io/flamework/articles/style_guide">Style guide</a>


## Libraries & Tools
Expand All @@ -75,7 +75,7 @@ There are several drop-in external libraries for common tasks:

And some random odds and ends:

* <a href="https://github.com/straup/flamework">flamework-tools</a> - Automation scripts
* <a href="https://github.com/straup/flamework-tools">flamework-tools</a> - Automation scripts


## Tests
Expand Down
9 changes: 6 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"

config.vm.box = "ubuntu/trusty64"

config.vm.synced_folder "www/templates_c/", "/vagrant/www/templates_c/", owner:"www-data", group:"www-data"

config.vm.network :forwarded_port, guest: 80, host: 8080

config.vm.provision :shell, :path => "tests/vagrant/init.sh"
config.vm.provision :shell, :path => "build/vagrant/init.sh"

end
18 changes: 18 additions & 0 deletions apache/vagrant-default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<VirtualHost *:80>

DocumentRoot /var/www/html

<Directory />
Require all granted
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory /var/www/html/>
Options FollowSymLinks Indexes
AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

</VirtualHost>
7 changes: 1 addition & 6 deletions bin/compile-templates.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php

$root = dirname(dirname(__FILE__));
ini_set("include_path", "{$root}/www:{$root}/www/include");

set_time_limit(0);

include("include/init.php");
include("init_local.php");

# http://www.smarty.net/docs/en/api.compile.all.templates.tpl (version 3)
# $GLOBALS['smarty']->compileAllTemplates('.txt', true);
Expand Down
9 changes: 1 addition & 8 deletions bin/generate_secret.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?php

$root = dirname(dirname(__FILE__));
ini_set("include_path", "{$root}/www:{$root}/www/include");

set_time_limit(0);

#

include("include/init.php");
include("init_local.php");
loadlib("random");

$length = 32;
Expand Down
8 changes: 8 additions & 0 deletions bin/init_local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

$root = dirname(dirname(__FILE__));
ini_set("include_path", "{$root}/www:{$root}/www/include");

include("include/init.php");

# the end
13 changes: 13 additions & 0 deletions build/docker/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
chown www-data:www-data /app -R

if [ "$ALLOW_OVERRIDE" = "**False**" ]; then
unset ALLOW_OVERRIDE
else
sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
a2enmod rewrite
fi

source /etc/apache2/envvars
tail -F /var/log/apache2/* &
exec apache2 -D FOREGROUND
25 changes: 25 additions & 0 deletions build/vagrant/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

export DEBIAN_FRONTEND=noninteractive

sudo apt-get update
sudo apt-get install -y php5-cli git php5-mcrypt php5-curl
sudo apt-get install -y apache2 libapache2-mod-php5
sudo apt-get install -y mysql-server php5-mysql
sudo apt-get install -y memcached php5-memcache

sudo apt-get install emacs24-nox

rm -rf /var/www/html
ln -fs /vagrant/www /var/www/html

cd /vagrant
chmod 755 www/templates_c

sudo rm /etc/apache2/sites-enabled/000-default.conf
sudo ln -s /vagrant/apache/vagrant-default.conf /etc/apache2/sites-enabled/000-default.conf

sudo a2enmod rewrite
sudo php5enmod mcrypt

/etc/init.d/apache2 start
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_site
.sass-cache
.jekyll-metadata
12 changes: 12 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: flamework docs

baseurl: /flamework

# Build settings
markdown: kramdown

# collections
collections:
docs:
output: true

5 changes: 5 additions & 0 deletions docs/database_model.md → docs/_docs/database_model.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "The flamework database model"
layout: default
---

# The Flamework database model

Flamework assumes a federated model with all the various user data spread across a series of databases,
Expand Down
7 changes: 6 additions & 1 deletion docs/install_appfog.md → docs/_docs/install_appfog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Installation - Appfog.com"
layout: default
---

# Installation - AppFog.com

Installation on AppFog.com is pretty simple and offers the advantage of being able to easily scale your app and move between infrastructures and data centers.
Expand Down Expand Up @@ -47,4 +52,4 @@ with this

This will open a MySQL connection to your AppFog database. You can then use standard MySQL commands to copy in the schema files found in /yourflameworkfolder/schema. Once this is done, you should be able to create user accounts, etc on your AppFog/Flaework app.

Enjoy.
Enjoy.
5 changes: 5 additions & 0 deletions docs/install_base.md → docs/_docs/install_base.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Installation - base"
layout: default
---

# Installation - As a base for a new project

Get the [code from GitHub](https://github.com/exflickr/flamework).
Expand Down
5 changes: 5 additions & 0 deletions docs/install_external.md → docs/_docs/install_external.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Installation - external"
layout: default
---

# Installation - As an external library

Another way to use flamework is to clone it into a subfolder and build
Expand Down
5 changes: 5 additions & 0 deletions docs/pagination.md → docs/_docs/pagination.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Pagination"
layout: default
---

# Pagination

Flamework provides helper functions for creating simple or complex pagaing widgets.
Expand Down
5 changes: 5 additions & 0 deletions docs/philosophy.md → docs/_docs/philosophy.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Philosophy"
layout: default
---

# Flamework Design Philosophy - Statement(s) of Bias

*"Working on the crumbly edge of future-proofing." -- [Heather Champ](http://www.hchamp.com/)*
Expand Down
5 changes: 5 additions & 0 deletions docs/style_guide.md → docs/_docs/style_guide.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Style guide"
layout: default
---

# Flamework Style guide

The coding style is idiosyncratic and will stay that way. There are no
Expand Down
5 changes: 5 additions & 0 deletions docs/troubleshooting.md → docs/_docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: "Troubleshooting"
layout: default
---

Troubleshooting
===============

Expand Down
47 changes: 47 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<head>
<!-- Canonical link to help search engines -->
<link rel="canonical" href="{{ site.baseurl }}{{ page.url }}"/>

<!-- Basic meta elements -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>

<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"/>

<!-- Dublin Core metadata for Zotero -->
<meta name="DC.title" content="{{ page.title }}" />
<meta name="DC.creator" content="{{ page.author }}" />
<meta name="DC.contributor" content="{{ page.editor }}" />
<meta name="DC.date" content="{{ page.publication-date }}" />
<meta name="DC.rights" content="{{ page.rights }}" />
<meta name="DC.source" content="{{ site.title }}" />

<!-- Open Graph metadata -->
<meta property="og:title" content="{{ page.title }}"/>
<meta property="og:author" content="{{ page.author }}"/>
<meta property="og:book:release_date" content="{{ page.publication-date }}"/>
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ site.url }}"/>
<meta property="og:image" content="http://elotroalex.github.io/ed/public/apple-touch-icon-precomposed.png"/>

<title>
{% if page.title == "Home" %}
{{ site.title }}
{% else %}
{{ page.title }}
{% endif %}
</title>

<!-- CSS links -->
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/syntax.css"/>
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/ed.css"/>


<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{ site.baseurl }}/public/apple-touch-icon-precomposed.png"/>
<link rel="shortcut icon" href="{{ site.baseurl }}/public/favicon.ico"/>

<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.baseurl }}/atom.xml"/>
</head>
25 changes: 25 additions & 0 deletions docs/_includes/sidebar-toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
styles, `#sidebar-checkbox` for behavior. -->
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">

<!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar">
<div class="sidebar-item">
<p>{{ page.title }}</p>
</div>

<nav class="sidebar-nav">
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="#" data-proofer-ignore>Return to Top</a>
{% for node in page.toc %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %} sidebar-nav-item-toc" href="#{{ node | slugify }}">{{ node }}</a>
{% endfor %}

</nav>

<div class="sidebar-item">
<p>
Edited by {{ page.editor }}, {{ site.time | date: '%Y' }}.
</p>
</div>
</div>
Loading