<p align="center">
<img height="30px" src="https://www.eae.pt/images/icons/logo-white.svg"> 
EAST ATLANTIC ENGINEERING
</p>


## Installation
This EAE Base CMS is built on Laravel 5.8. Laravel 5.8 has 
these [requirements](https://laravel.com/docs/5.8/installation#server-requirements).

1. You need to copy the .env.example to .env . There you have to set the following:

   * **APP_NAME** - Usually the name of the project. If the name has spaces you need to enclose it in quotes
   * **APP_ENV** - Environment you are running the project. If you are running locally put **local**
   * **APP_DEBUG** - Set to true if you what to see the error stack screen
   * **APP_URL** - The base url for your website. It does not finish with trailing slashes (ex:http://eae-base-cms.lndo.site)
   * **DB_*** - Set the appropriate database credentials. The example credential are correct if you are running lando
   * **MAIL_*** Set the appropriate email service credentials. The example is correct if you are running lando and you what to 
send the emails to mailhog
   * **EAE_ADMIN_DEFAULT_PASSWORD** - Set the default admin password when creating the project. This will be used when you run 
the database seeders
   * **EAE_RECAPTCHA_*** - Set the google recaptcha keys. The backoffice is using recapcha v3
   * **EAE_GOOGLE_API_KEY** - Set the google maps javascript api key

2. Run `lando start` (optional if you are not running lando)

3. Run `composer install` or  `lando composer install` (the last one if you are running lando)

4. Run `php artisan key:generate` or `lando artisan key:generate` (the last one if you are running lando) to generate 
the APP_KEY in .env

5. Run `php artisan migrate` or `lando artisan migrate` (the last one if you are running lando)

6. Run `php artisan db:seed` or `lando artisan db:seed` (the last one if you are running lando)

After this you should be able to access with APP_URL\admin . Username is admin and the password is 
the one in EAE_ADMIN_DEFAULT_PASSWORD 