Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
Updated instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
o-alquimista committed Mar 17, 2020
1 parent 8e5ca9b commit 015d904
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ Configure your web server so that its root directory is `<your-project-name>/pub
```
AllowOverride None
Require all granted
Allow from All
FallbackResource /index.php
```

Edit `/config/database.ini` to configure database connection details.

In order to manage assets, run `yarn install` and build them with `yarn build` (development), `yarn build-watch` (development w/ watch) or `yarn build-prod` (production). The output goes to `/public/build/`.
Create `/config/database.ini` with the following lines to configure database connection details:
```
pdo_driver = mysql
database_name = fragments
host = 127.0.0.1
port = 3306
username = root
password = root
```

Add routes in `/config/routes.xml` and start building your first controller in `/src/Controller/`. Business logic/data mappers go inside the Model. The View essentially juggles with a couple of templates. Check the Fragments Bundle files, such as [AbstractController](https://github.com/o-alquimista/fragments/blob/master/src/Fragments/Bundle/Controller/AbstractController.php) and [AbstractView](https://github.com/o-alquimista/fragments/blob/master/src/Fragments/Bundle/View/AbstractView.php) to see what methods are there to help you. You can also try our [Fragments Demo](https://github.com/o-alquimista/fragments-demo) application to get an idea of how things work.
Add routes in the file `/config/routes.xml` and start building your first controller at `/src/Controller/`. You can also try our [Fragments Demo](https://github.com/o-alquimista/fragments-demo) application to get an idea of how things work.

## License
Copyright 2019-2020 Douglas Silva (0x9fd287d56ec107ac)
Expand Down

0 comments on commit 015d904

Please sign in to comment.