# Installation

## Setting up the skeleton

Depending of you environment, PHP and composer could be located in specific paths.  
Defines theme with environment vars:

```bash
export PHP_BIN=/usr/bin/php
export COMPOSER_BIN=/usr/bin/composer
export NPM_BIN=/usr/bin/npm
export YARN_BIN=/usr/bin/yarn
```

Create your project:

```bash
"$COMPOSER_BIN" create-project murph/murph-skeleton my_project ^1
```

An error occured because of the unconfigured database.

* Copy `.env` into `.env.local`
* Edit `.env.local` ([documentation](https://symfony.com/doc/current/configuration.html#configuring-environment-variables-in-env-files)). Don't forget to set `APP_SECRET`.
* Run `make build`

## Create an admin user

Run `"$PHP_BIN" bin/console murph:user:create` and answer questions.

## Configure a web server

Read the documentation of Symfony to [configure a web server](https://symfony.com/doc/current/setup/web_server_configuration.html).

In case of a local server, you can use the [Symfony Local Web Server](https://symfony.com/doc/current/setup/symfony_server.html).  
Then go to [https://127.0.0.1:8000/admin](https://127.0.0.1:8000/admin).
