Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit, basic item crud working
- Loading branch information
0 parents
commit 4f1b7cd
Showing
79 changed files
with
7,223 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Memex, a personal web memory | ||
|
||
## Overview | ||
|
||
This hopes one day to grow up to be an Open Source social bookmarking web application. | ||
|
||
## Installation | ||
|
||
* Get a copy or a link of the latest [Zend Framework][zf] into the `library/` directory. | ||
* Try using `scripts/load.sqlite.php` to create the database. | ||
|
||
[zf]: http://framework.zend.com/download/latest | ||
|
||
## Contributors | ||
|
||
* l.m.orchard - <http://decafbad.com/> <mailto:l.m.orchard@pobox.com> | ||
|
||
## License | ||
|
||
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 Unported License</a>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# TODO | ||
|
||
* Make *-dist versions of config files, delete originals | ||
* Implement an installer that can produce local configs | ||
* v1 API | ||
* AtomPub API | ||
* {Atom,RSS,JSON} feeds | ||
* AJAXify post save / edit / delete | ||
* Implement network based on RSS/Atom aggregation | ||
* [Message / work queues and deferred processing](queues) | ||
* Make it scale | ||
|
||
[queues]: http://decafbad.com/blog/2008/07/04/queue-everything-and-delight-everyone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Set up default app constants. | ||
defined('APPLICATION_ENVIRONMENT') | ||
or define('APPLICATION_ENVIRONMENT', 'development'); | ||
defined('APPLICATION_PATH') | ||
or define('APPLICATION_PATH', dirname(__FILE__)); | ||
|
||
// Assemble some app-specific library paths. | ||
set_include_path(join(PATH_SEPARATOR, array( | ||
APPLICATION_PATH . '/../library', | ||
APPLICATION_PATH . '/library', | ||
APPLICATION_PATH . '/vendor', | ||
get_include_path() | ||
))); | ||
|
||
// Wire up the class autoloader. | ||
require_once "Zend/Loader.php"; | ||
Zend_Loader::registerAutoload(); | ||
|
||
// Fire up the initialization plugin with the front controller. | ||
require_once APPLICATION_PATH . '/plugins/Initialize.php'; | ||
$init = new Memex_Plugin_Initialize( | ||
APPLICATION_ENVIRONMENT, | ||
APPLICATION_PATH | ||
); | ||
Zend_Controller_Front::getInstance()->registerPlugin($init); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[production] | ||
database.adapter = "PDO_SQLITE" | ||
database.params.dbname = APPLICATION_PATH "/../data/db/memex.db" | ||
database.profile = false | ||
|
||
log.writer = "Stream" | ||
log.priority = 2 | ||
log.path = APPLICATION_PATH "/../logs/application.log" | ||
|
||
error.show_exceptions = false | ||
|
||
; TODO: Change this in install script? | ||
form.salt = this is the form salt | ||
|
||
[development : production] | ||
database.params.dbname = APPLICATION_PATH "/../data/db/memex-dev.db" | ||
database.profile = true | ||
|
||
log.writer = "Firebug" | ||
log.priority = 7 | ||
|
||
error.show_exceptions = true | ||
|
||
[testing : production] | ||
database.params.dbname = APPLICATION_PATH "/../data/db/memex-test.db" | ||
database.profile = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[production] | ||
routes.foob.route = "foob/*" | ||
routes.foob.defaults.controller = "index" | ||
routes.foob.defaults.action = "index" | ||
routes.foob.defaults.poof = "wang" | ||
|
||
[development : production] | ||
[testing : production] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
<?php | ||
return array( | ||
'routes' => array( | ||
|
||
'post_profile_tags' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => '(.*)/(.*)', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'profile' | ||
), | ||
'map' => array( | ||
1 => 'screen_name', | ||
2 => 'tags' | ||
), | ||
'reverse' => '%s/%s', | ||
), | ||
'post_profile' => array( | ||
'type' => 'Zend_Controller_Router_Route', | ||
'route' => ':screen_name', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'profile' | ||
) | ||
), | ||
|
||
'doc_index' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => 'docs/(.*)', | ||
'defaults' => array( | ||
'controller' => 'doc', 'action' => 'index' | ||
), | ||
'map' => array( | ||
1 => 'path' | ||
), | ||
'reverse' => 'docs/%s', | ||
), | ||
|
||
|
||
'post_save' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => 'save', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'save' | ||
) | ||
), | ||
'post_view' => array( | ||
'type' => 'Zend_Controller_Router_Route', | ||
'route' => 'posts/:uuid', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'view' | ||
) | ||
), | ||
'post_save_edit' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => 'posts/(.*);edit', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'save', 'subaction' => 'edit' | ||
), | ||
'map' => array( | ||
1 => 'uuid' | ||
), | ||
'reverse' => 'posts/%s;edit', | ||
), | ||
'post_save_copy' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => 'posts/(.*);copy', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'save', 'subaction' => 'copy' | ||
), | ||
'map' => array( | ||
1 => 'uuid' | ||
), | ||
'reverse' => 'posts/%s;copy', | ||
), | ||
'post_delete' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => 'posts/(.*);delete', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'delete' | ||
), | ||
'map' => array( | ||
1 => 'uuid' | ||
), | ||
'reverse' => 'posts/%s;delete', | ||
), | ||
'post_tag_recent' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => 'recent', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'tag' | ||
) | ||
), | ||
'post_tag' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => 'tag/(.*)', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'tag' | ||
), | ||
'map' => array( | ||
1 => 'tags' | ||
), | ||
'reverse' => 'tag/%s', | ||
), | ||
/* | ||
'post_profile_tags' => array( | ||
'type' => 'Zend_Controller_Router_Route_Regex', | ||
'route' => 'people/(.*)/(.*)', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'profile' | ||
), | ||
'map' => array( | ||
1 => 'screen_name', | ||
2 => 'tags' | ||
), | ||
'reverse' => 'people/%s/%s', | ||
), | ||
'post_profile' => array( | ||
'type' => 'Zend_Controller_Router_Route', | ||
'route' => 'people/:screen_name', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'profile' | ||
) | ||
), | ||
*/ | ||
|
||
'profile_index' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => 'people', | ||
'defaults' => array( | ||
'controller' => 'profile', 'action' => 'index' | ||
) | ||
), | ||
|
||
'auth_home' => array( | ||
'route' => 'home', | ||
'defaults' => array( | ||
'controller' => 'auth', 'action' => 'home' | ||
) | ||
), | ||
|
||
'auth_register' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => 'register', | ||
'defaults' => array( | ||
'controller' => 'auth', 'action' => 'register' | ||
) | ||
), | ||
'auth_login' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => 'login', | ||
'defaults' => array( | ||
'controller' => 'auth', 'action' => 'login' | ||
) | ||
), | ||
'auth_logout' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => 'logout', | ||
'defaults' => array( | ||
'controller' => 'auth', 'action' => 'logout' | ||
) | ||
), | ||
'auth_openid' => array( | ||
'type' => "Zend_Controller_Router_Route_Static", | ||
'route' => 'openid', | ||
'defaults' => array( | ||
'controller' => 'auth', 'action' => 'openid' | ||
) | ||
), | ||
|
||
'post_tag_recent' => array( | ||
'type' => 'Zend_Controller_Router_Route_Static', | ||
'route' => '', | ||
'defaults' => array( | ||
'controller' => 'post', 'action' => 'tag' | ||
) | ||
), | ||
|
||
) | ||
); |
Oops, something went wrong.