Skip to content

Commit 3040ba3

Browse files
committed
Update Readme with Composer instructions
1 parent 9100f0a commit 3040ba3

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

readme.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,38 @@ To install the framework download and copy it into an Apache web folder. Then go
3737
By default framework provides a small set of examples. For using them run the provided SQL script into the **sql** folder.
3838
In a future time, I will provide you with more examples illustrating its functionalities.
3939

40-
### Using composer
40+
## Setup Using composer
4141

4242
To create a new PHP Web MVC project in a given project folder, open a terminal session and run:
4343

4444
```
4545
composer create-project rcarvello/webmvcframework PROJECT-FOLDER
4646
```
4747

48-
Then install node dependencies:
48+
Then go into PROJECT-FOLDER:
4949

5050
```
51-
npm install
51+
cd PROJECT-FOLDER
5252
```
5353

54-
Finally run:
54+
Configure DB access:
55+
56+
```
57+
php setup-config.php
58+
```
59+
60+
You will be prompted to specify certain configuration variables, such as the database host, username, password, etc.
61+
62+
Finally, you can run the development server simply by typing:
5563

5664
```
5765
composer run dev
5866
```
5967

68+
The development server will be started by enabling hot reload on any code changes.
69+
70+
Your web browser will open the demo page at **http://localhost:3000**
71+
6072
## How to autogenerate PHP Model classes from your MySQL database
6173
The util directory contains a file named **app_create_beans.php**.
6274
Run it from your browser or from the command line to execute the ORM classes code auto-generation regarding tables of a given MySQL database.

0 commit comments

Comments
 (0)