-
Notifications
You must be signed in to change notification settings - Fork 3
V7 overhaul #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bidi47
wants to merge
6
commits into
main
Choose a base branch
from
v7-overhaul
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
V7 overhaul #149
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
292676c
updated installation
bidi47 1f9fb92
updated installation pages
bidi47 77853ca
updated installation page
bidi47 5ec9bdc
updated introduction, authentication pages
bidi47 a7cebf0
linting fixes
bidi47 d2aa20c
updated pages based on review
bidi47 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,31 @@ | ||
| # Configuration Files | ||
|
|
||
| > The installation script should have already created the files mentioned on this page. | ||
| > We mention them explicitly because you will need to visit them to fully configure your development environment. | ||
| The post-update scripts from `composer.json` (under the key `post-update-cmd`) should have already created the files mentioned on this page. | ||
|
|
||
| > We mention these files explicitly because you will need to visit them to fully configure your development environment. | ||
| > You will need to do the same for the production environment when you deploy your application. | ||
|
|
||
| ## Prepare config files | ||
|
|
||
| * duplicate `config/autoload/cors.local.php.dist` as `config/autoload/cors.local.php` | ||
| The installation script will duplicate the following files: | ||
|
|
||
| * `config/autoload/cors.local.php.dist` as `config/autoload/cors.local.php`. | ||
|
|
||
| > If your API is consumed by another application, make sure to configure the `allowed_origins` variable. | ||
| > Normally, the other configuration items in `cors.local.php` should be left as-is. | ||
| > If you need to tweak them, visit the [CORS tutorial](https://docs.dotkernel.org/api-documentation/v7/tutorials/cors/). | ||
|
|
||
| * `config/autoload/local.php.dist` as `config/autoload/local.php`. | ||
|
|
||
| * duplicate `config/autoload/local.php.dist` as `config/autoload/local.php` | ||
| > `local.php` is the main configuration file for your application. | ||
| > It contains the database connection parameters, the API key, and other configuration items. | ||
|
|
||
| * duplicate `config/autoload/mail.local.php.dist` as `config/autoload/mail.local.php` | ||
| * `config/autoload/mail.local.php` from the `dot-mail` package installed in the `vendor` folder. | ||
|
|
||
| > If your API sends emails, make sure to fill in SMTP connection params | ||
| > If your API sends emails, you also need to configure the `mail` key. | ||
| > Most often, you will be using either `Sendmail` or `SMTP` to send emails. | ||
| > If you opt for `SMTP`, ake sure to configure the SMTP connection parameters under the `smtp_options` key. | ||
|
|
||
| * **optional**: to run/create tests, duplicate `config/autoload/local.test.php.dist` as `config/autoload/local.test.php` | ||
| * `config/autoload/local.test.php.dist` as `config/autoload/local.test.php` to run and create tests. | ||
|
|
||
| > This creates a new in-memory database that your tests will run on. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which one is the "setup script " ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composer install or update is the "setup script"
others are commands or scripts which execute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added details