README
This commit is contained in:
parent
0fc03b394d
commit
0f10e59e38
46
README.md
46
README.md
@ -7,13 +7,14 @@ Web-Base is a php framework which provides basic web functionalities and a moder
|
|||||||
- One of these php extensions: mysqli, postgres
|
- One of these php extensions: mysqli, postgres
|
||||||
|
|
||||||
### Current Functionalities:
|
### Current Functionalities:
|
||||||
- Installation Guide with automatic database setup
|
- [Installation Guide with automatic database setup](#installation)
|
||||||
- REST API
|
- [REST API](#adding-api-endpoints)
|
||||||
- Account management
|
- [Supporting MySQL + PostgreSQL](#modifying-the-database)
|
||||||
- Supporting MySQL + PostgreSQL
|
- [Dynamic Page Routing](#routing)
|
||||||
- Dynamic Page Routing
|
- [Localization](#localization)
|
||||||
|
- [Command Line Interface (CLI)](#cli)
|
||||||
|
- [Account & User functions](#access-control)
|
||||||
- Admin Dashboard
|
- Admin Dashboard
|
||||||
- Account & User functions
|
|
||||||
- File Sharing Dashboard
|
- File Sharing Dashboard
|
||||||
|
|
||||||
### Upcoming:
|
### Upcoming:
|
||||||
@ -112,7 +113,7 @@ If any result is expected from the api call, the `$req->getResult()` method can
|
|||||||
This step is not really required, as and changes made to the database must not be presented inside the code.
|
This step is not really required, as and changes made to the database must not be presented inside the code.
|
||||||
On the other hand, it is recommended to keep track of any modifications for later use or to deploy the application
|
On the other hand, it is recommended to keep track of any modifications for later use or to deploy the application
|
||||||
to other systems. Therefore, either the [default installation script](/core/Configuration/CreateDatabase.class.php) or
|
to other systems. Therefore, either the [default installation script](/core/Configuration/CreateDatabase.class.php) or
|
||||||
an additional patch file, which can be executed using the [CLI](/cli.php), can be created. The patch files are usually
|
an additional patch file, which can be executed using the [CLI](#CLI), can be created. The patch files are usually
|
||||||
located in [/core/Configuration/Patch](/core/Configuration/Patch) and have the following structure:
|
located in [/core/Configuration/Patch](/core/Configuration/Patch) and have the following structure:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
@ -266,6 +267,37 @@ class SomeView extends \Elements\View {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## CLI
|
||||||
|
|
||||||
|
Using the CLI, you can toggle the maintenance mode, perform database updates, managing routes and updating the whole project. Some example usages:
|
||||||
|
|
||||||
|
### Maintenance commands
|
||||||
|
```bash
|
||||||
|
php cli.php maintenance status
|
||||||
|
php cli.php maintenance off
|
||||||
|
php cli.php maintenance on
|
||||||
|
php cli.php maintenance update
|
||||||
|
```
|
||||||
|
|
||||||
|
### Database commands
|
||||||
|
```bash
|
||||||
|
php cli.php db export > dump.sql
|
||||||
|
php cli.php db export --data-only > data.sql
|
||||||
|
php cli.php db import dump.sql
|
||||||
|
php cli.php db migrate Patch/SomePatch
|
||||||
|
```
|
||||||
|
|
||||||
|
### Route commands
|
||||||
|
```bash
|
||||||
|
# Route commands
|
||||||
|
php cli.php routes list
|
||||||
|
php cli.php routes remove 1
|
||||||
|
php cli.php routes enable 1
|
||||||
|
php cli.php routes disable 1
|
||||||
|
php cli.php routes add /some/path static /static/test.html
|
||||||
|
php.cli.php routes modify 1 '/regex(/.*)?' dynamic '\\Documents\\Test'
|
||||||
|
```
|
||||||
|
|
||||||
## Anything more?
|
## Anything more?
|
||||||
|
|
||||||
Feel free to contact me regarding this project and any other questions.
|
Feel free to contact me regarding this project and any other questions.
|
Loading…
Reference in New Issue
Block a user