ncsuwebdev/base-otf-app

There is no license information available for the latest version (1.0.7) of this package.

Base app for creating an OTF app

1.0.7 2013-08-09 21:19 UTC

This package is not auto-updated.

Last update: 2024-03-16 10:48:48 UTC


README

#Base OT Framework App#

This the a skeleton app to allow a user to quickly start creating an app based on OT Framework (http://github.com/ncsuwebdev/otframework).

You can install this via composer (http://getcomposer.org) by:

$ git clone git@github.com:ncsuwebdev/base-otf-app.git
$ cd base-otf-app
$ composer create-project ncsuwebdev/base-otf-app [install directory]
$ cd [install directory/new ot application]
$ composer install
$ composer update

NOTE! The install directory should NOT exist before running the script

If you want a specific version of the base OTF app, you can append a version number to the create-project command that references the desired tag.

As composer is installing, it will prompt you and ask Do you want to remove the existing VCS (.git, .svn..) history? You should select Y so that it removes all the git file history and remote repositories. You should then initialize your own repository to store your code.

Once you create the project, you will need to do a few steps to get going:

  • Create a database and put the credentials in the development section in [yourproject]/application/configs/application.ini

  • Run the database migration script to install the db.

    $ Using your favorite SQL client/CLI (we use Sequel Pro), create a database for your project
    $ cd <vagrant instance>
    $ vagrant ssh
    $ cd /var/www/html/[yourproject]
    $ composer install
    $ composer update
    $ php otutils/migrate.php -c latest -e development
  • Go to http://[path-you-installed-this] and you can log in with admin/admin credentials