Skip to content

Commit 7b75740

Browse files
committed
Update the getting started guide
1 parent a4fca1a commit 7b75740

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

docs/getting-started.md

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Getting Started
22

3-
## What Happens To My ExpressionEngine Site?
4-
5-
It's important for Coilpack users to understand that when using Coilpack, your ExpressionEngine application will need to be accessed through the URL associated with your Laravel project. This is because Laravel handles all parsing of your templates so that you can use Blade and Twig.
6-
7-
**New ExpressionEngine Sites**
8-
9-
Coilpack has the ability to create a new ExpressionEngine site for you on setup. See the [Installation](#installation) section below for more details on how to accomplish this.
10-
11-
**Current ExpressionEngine Sites**
12-
13-
For Example, if you have a current ExpressionEngine site located at `https://amazingsite.com`, and your Laravel application is setup to be accessed via `https://amazinglaravelsite.com`, after installing Coilpack you will now access your ExpressionEngine site via `https://amazinglaravelsite.com` (`https://amazinglaravelsite.com/admin.php` to access the Control Panel).
14-
15-
For the sake of SEO, current links in place, etc, once you decide to use Coilpack for your website, you will probably want to update your webserver to point your site's current URL to your Laravel project. Talk to your webserver admin for information on how to accomplish this.
3+
Before we begin it's important to understand that when using Coilpack, your ExpressionEngine application will need to be accessed through a Laravel project. This is because Coilpack depends on the Laravel Framework and operates within a Laravel request's lifecycle.
164

175
:::tip
186
Read more about how URLs are handled inside of Coilpack in the [Routing Section](./routing.md)
197
:::
208

21-
## Selecting a Laravel Version
9+
## Quick Start
10+
11+
If you are new to Laravel and Coilpack we strongly recommend you follow the rest of this guide for getting started. However, if you have installed Coilpack before or are familiar with setting up a Laravel application you can get started quickly with the commands below.
12+
13+
```sh
14+
composer create-project --prefer-dist laravel/laravel project-name
15+
cd project-name
16+
composer require expressionengine/coilpack:0.x-dev
17+
php artisan coilpack
18+
```
19+
20+
## Choosing a Laravel Version
2221

2322
We recommend using the latest version of Laravel whenever possible. If you are limited to a certain version of PHP we have a table below showing which version of Laravel may be right for you.
2423

@@ -30,11 +29,10 @@ We recommend using the latest version of Laravel whenever possible. If you are
3029

3130
## Installation
3231

33-
To use Coilpack You will need a development environment with PHP >= 7.4.0 and Composer installed. Consult the [Laravel Installation documentation](https://laravel.com/docs/9.x/installation) for more help on setting up your environment.
34-
32+
To use Coilpack You will need a development environment with PHP >= 7.4.0 and Composer installed. Consult the [Laravel Installation documentation](https://laravel.com/docs/10.x/installation) for more help on setting up your environment.
3533

36-
**Create A Laravel Project**
3734

35+
### Create A Laravel Project
3836

3937
```
4038
composer create-project --prefer-dist laravel/laravel:^8.0 project-name
@@ -47,15 +45,14 @@ You must set your webserver's document root to point to the `public` folder insi
4745
:::tip
4846
It can be helpful to tell Composer which version of PHP you're targeting. This is especially important in a development environment where your webserver's PHP version may be different than the CLI.
4947

50-
To do this run: `composer config platform.php 8.0` substituting `8.0` for whichever version you are using.
51-
48+
To do this run: `composer config platform.php 8.0` substituting `8.0` for the version you are using.
5249
:::
5350

54-
**Configure your Laravel Project**
51+
### Configure your Laravel Project
5552

56-
Now that you have a Laravel Project setup it is a good time to edit the values in your `.env` file to reflect your setup. The `APP_URL` and `DB_*` variables are particularly important.
53+
Now that you have a Laravel Project setup it is a good time to edit the values in your `.env` file to reflect your setup. The `APP_URL` and `DB_*` variables are particularly important for later steps in the Coilpack setup.
5754

58-
**Install Coilpack**
55+
### Require Coilpack
5956

6057
Inside of your Laravel project, you will need to update your project to use the Coilpack package.
6158

@@ -65,9 +62,9 @@ cd project-name
6562
composer require expressionengine/coilpack:0.x-dev
6663
```
6764

68-
**Run Coilpack Setup**
65+
### Run Coilpack Setup
6966

70-
During the setup process you may choose to install a new copy of ExpressionEngine or point Coilpack to the path of an existing installation. Please note that ExpressionEngine 7 is required so if you would like to install Coilpack with an existing site you may need to upgrade your ExpressionEngine install first.
67+
During the setup process you may choose to install a new copy of ExpressionEngine or use an existing installation by providing the path to Coilpack.
7168

7269
From inside of your Laravel project, run the Coilpack setup.
7370

@@ -77,11 +74,20 @@ php artisan coilpack
7774

7875
We recommend keeping your version of ExpressionEngine updated to the latest 7.x release as we are constantly making improvements that may also affect Coilpack.
7976

80-
**Install ExpressionEngine**
77+
### Using a New ExpressionEngine Install
8178

82-
If you chose for Coilpack to create a new copy of ExpressionEngine, you will find a new `ee` folder inside of your Laravel project. You now need to install ExpressionEngine via the `admin.php` file in your `ee` folder. Example: `https://example.com/admin.php` . Follow the on-screen instructions to install ExpressionEngine.
79+
If you want Coilpack to create a new ExpressionEngine install, it will be placed in an `ee` folder within your Laravel project. You now need to setup ExpressionEngine via the `admin.php` file in your `ee` folder. Example: `http://localhost/admin.php`. Follow the on-screen instructions to finalize your ExpressionEngine install.
8380

84-
:::tip
85-
For more help with installing ExpressionEngine reference the [ExpressionEngine Docs](https://docs.expressionengine.com/latest/installation/installation.html)
86-
:::
81+
For more help with installing ExpressionEngine reference the [ExpressionEngine Docs](https://docs.expressionengine.com/latest/installation/installation.html).
82+
83+
### Using an Existing ExpressionEngine Install
8784

85+
If you want to use an existing ExpressionEngine install you will be prompted for a path that is accessible from your Laravel project. The path can be relative or absolute and should point to the root folder of your ExpressionEngine install. You will also be asked for relative paths to system and config folders. The typical locations are provided as default answers but if you have a customized setup it is important to let Coilpack know where to find these directories.
86+
87+
After you have linked your site with Coilpack you will need to change the way you access the site. For example if your ExpressionEngine site is located at `https://example.com`, and your Laravel application is setup to be accessed via `https://coilpack.example.com`, after setting up Coilpack you will need to access your ExpressionEngine site via `https://coilpack.example.com` (`https://coilpack.example.com/admin.php` to access the Control Panel).
88+
89+
For the sake of SEO, current links in place, etc, once you decide to use Coilpack for your website, you will probably want to update your webserver to point your site's current URL to your Laravel project. Talk to your webserver admin for information on how to accomplish this.
90+
91+
:::caution
92+
Please note that ExpressionEngine 7 is required so if you would like to install Coilpack with an existing site you may need to upgrade your ExpressionEngine site first.
93+
:::

0 commit comments

Comments
 (0)