uncgits / uncg-base-otf-app
Base app for creating a UNCG OTF app
Requires
- php: >=5.3.0
- uncgits/uncg-otframework: 3.0.14
This package is auto-updated.
Last update: 2024-11-20 03:12:50 UTC
README
This the a skeleton app to allow a user to quickly start creating an app based on UNCG OT Framework (https://bitbucket.org/uncgits/uncg-otframework).
You can install this via composer (http://getcomposer.org) by:
$ git clone git@bitbucket.org:uncgits/uncg-base-otf-app.git
$ cd base-otf-app
$ composer create-project uncgits/uncg-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