Skip to content

Commit f11ae4d

Browse files
committed
Update README.md
1 parent 8007aec commit f11ae4d

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,29 @@ The router sees that rest is enabled on the Account controller at Account->rest
4040

4141
The put method then ensures that the person is logged in, validates the data, gets the repository and updates the object in the repository, and returns an affermative response.
4242

43-
## Installation
44-
Nothing fancy right now, you just copy this into your project as a template, update a few things, and start writing code.
43+
## Install/Create a project
44+
Setup your environment for developing in. I've installed Centos 7 in a VM.
45+
46+
Install php 6.4+ or php 7 (Unless you want to be brave and test something I haven't) feel free to install your persistance mechanism, I'm also installing mysql and mysql-server.
47+
48+
Since this project is designed to take advantage of autocomplete, you might as well use a modern IDE. I'm going to do this in PHPStorm 10 and give the instructions for getting up and running in that IDE.
49+
50+
Create a new empty project.
51+
52+
Copy the contents of the template directory in this project into phpstorm, so you have an app and public_html directory in your root directory.
53+
54+
Init a git repository, you don't want to loose your work.
55+
56+
Add everything to the git repository and create an initial commit.
57+
58+
I set the mappings up in PHPStorm so that the app directory in the project mapped to /var/www/app and the public_html directory mapped to /var/www/html since that's all this server is for and this will create fewer apache configuration changes, feel free to chamge mappings to suit.
59+
60+
In PHPStorm I set the new server as the default and set the autoload option on the deployment menu.
61+
62+
Check to make sure the files ended up on your test VM where you expected them to be.
63+
64+
Edit the configuration options in app/config.php to match where you put everything.
65+
4566

4667
## Unit Testing
4768
In general you just put tests in the testing directory with the same structure as the classes you are testing in the classes directory. The environment is Testing and so the associated configuration and dependency injection classes will be loaded.

0 commit comments

Comments
 (0)