Skip to content

Commit

Permalink
update README.md regarding config, test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
funkatron committed Feb 28, 2015
1 parent c16837d commit bebe701
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ CBTTool

A simple web-based Cognitive Behavior Therapy tool


## Setup

- Install vendor packages with `composer update`
- ***copy*** `app/settings/base.SAMPLE.php` to `app/settings/base.php` and fill in your values
- ***symlink*** `app/app-settings.php` to `app/settings/development.php` with `ln -s app/settings/development.php app/app-settings.php`
- ***copy*** `app/config/base.SAMPLE.php` to `app/config/base.php` and fill in your values
- create an empty sqlite3 database with the command `sqlite3 ./data/cbttool.sqlite3 "select ''"`
- run the DB migrations with `php vendor/bin/phinx migrate`


## Running dev server

1. `cd` to the base directory of the project (the one that contains `app`, `www`, etc).
2. run the dev server with `./dev-server.sh`.
3. Open [`http://0.0.0.0:9909`](http://0.0.0.0:9909) in a web browser.

## Running tests

1. `cd` to the base directory of the project (the one that contains `app`, `www`, etc).
2. run the test suite with `./run-tests.sh`.

0 comments on commit bebe701

Please sign in to comment.