mmv/fw-example

Example web application

3.0.0 2021-04-23 15:09 UTC

This package is not auto-updated.

Last update: 2024-04-20 05:28:52 UTC


README

Install

$ composer require mmv/fw-example

Copy the contents of the vendor/mmv/fw-example/copy to the root of the project.

Add to composer.json for section autoload:

{
    "autoload": {
        "psr-4": {
            "App\\": "App/"
        }
    }
}

Update pathes for composer:

$ composer dump-autoload

Set the php process write/read permissions to the storage folder.

Copy file config/.env-example as config/.env.

Create string for APP_KEY in the .env file, for this run the console command in the project root:

$ php bin/console.php key-generate config/.env

Configure the config/.env file by specifying the database connection parameters and host parameters.

Run migrations:

$ php bin/console.php migrate:run

Create new user for administration:

$ php bin/console.php new-user <email> <login>

Open public/index.php in the browser.