Installation
Requirements
- Yarn 1.22+
- Node 12+
- PHP 7.3.0+
- Laravel 6
- A webserver, e.g. Homestead
Installation
Install a new Laravel project, replacing
SITE_NAMEis the name of your site.composer create-project --prefer-dist laravel/laravel=^6.2 SITE_NAMEAdd the Yadda repository to your projects
composer.jsonso that we can install Enso"repositories": [ { "type": "composer", "url": "https://packages.maya.agency" } ]Install Enso
composer require yadda/enso-core yadda/enso-utilities yadda/enso-analyticsFill in details in
.env.Publish vendor assets
php artisan vendor:publish --allRun the Enso install script
php artisan enso:installCompile your frontend assets
yarn run devYou should now be able to use your site!
You might also want to...
- Ensure you restrict CMS access
- For image optimization, you will need to install the appropriate libraries
- Check that your development environment is set up for the code quality tools
- Set up your project for testing
Development
If you're developing enso-core you can use the following to load your packages from a local directory.
"repositories": [
{
"type": "path",
"url": "./packages/yadda/enso-core"
},
{
"type": "path",
"url": "./packages/yadda/enso-utilities"
}
]