Skip to content

Commit 051fbd4

Browse files
authored
Merge pull request #245 from dotkernel/issue-243
Repaired doc block types
2 parents 05de6e4 + 69ac09f commit 051fbd4

File tree

4 files changed

+588
-516
lines changed

4 files changed

+588
-516
lines changed

docs/book/v4/introduction/getting-started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
Using your terminal, navigate inside the directory you want to download the project files into. Make sure that the directory is empty before proceeding to the download process. Once there, run the following command:
44

5-
git clone https://github.com/dotkernel/api.git .
5+
```shell
6+
git clone https://github.com/dotkernel/api.git .
7+
```

docs/book/v4/introduction/installation.md

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,29 @@
22

33
## Install dependencies
44

5-
composer install
5+
```shell
6+
composer install
7+
```
68

79
## Development mode
810

911
If you're installing the project for development, make sure you have development mode enabled, by running:
1012

11-
composer development-enable
13+
```shell
14+
composer development-enable
15+
```
1216

1317
You can disable development mode by running:
1418

15-
composer development-disable
19+
```shell
20+
composer development-disable
21+
```
1622

1723
You can check if you have development mode enabled by running:
1824

19-
composer development-status
25+
```shell
26+
composer development-status
27+
```
2028

2129
## Prepare config files
2230

@@ -34,11 +42,13 @@ Make sure you fill out the database credentials in `config/autoload/local.php` u
3442
* create a new MySQL database - set collation to `utf8mb4_general_ci`
3543
* run the database migrations by using the following command:
3644

37-
php vendor/bin/doctrine-migrations migrate
45+
```shell
46+
php vendor/bin/doctrine-migrations migrate
47+
```
3848

3949
This command will prompt you to confirm that you want to run it.
4050

41-
WARNING! You are about to execute a migration in database "..." that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:
51+
> WARNING! You are about to execute a migration in database "..." that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:
4252
4353
Hit `Enter` to confirm the operation.
4454

@@ -48,40 +58,52 @@ Hit `Enter` to confirm the operation.
4858

4959
To list all the fixtures, run:
5060

51-
php bin/doctrine fixtures:list
61+
```shell
62+
php bin/doctrine fixtures:list
63+
```
5264

5365
This will output all the fixtures in the order of execution.
5466

5567
To execute all fixtures, run:
5668

57-
php bin/doctrine fixtures:execute
69+
```shell
70+
php bin/doctrine fixtures:execute
71+
```
5872

5973
To execute a specific fixture, run:
6074

61-
php bin/doctrine fixtures:execute --class=FixtureClassName
75+
```shell
76+
php bin/doctrine fixtures:execute --class=FixtureClassName
77+
```
6278

6379
More details on how fixtures work can be found here: https://github.com/dotkernel/dot-data-fixtures#creating-fixtures
6480

6581
## Test the installation
6682

67-
php -S 0.0.0.0:8080 -t public
83+
```shell
84+
php -S 0.0.0.0:8080 -t public
85+
```
6886

6987
Sending a GET request to the [home page](http://0.0.0.0:8080/) should output the following message:
7088

71-
{
72-
"message": "Welcome to DotKernel API!"
73-
}
89+
> {"message": "Welcome to DotKernel API!"}
7490
7591
## Running tests
7692

7793
The project has 2 types of tests : functional and unit tests, you can run both types at the same type by executing this command:
7894

79-
php vendor/bin/phpunit
95+
```shell
96+
php vendor/bin/phpunit
97+
```
8098

8199
## Running unit tests
82100

83-
vendor/bin/phpunit --testsuite=UnitTests --testdox --colors=always
101+
```shell
102+
vendor/bin/phpunit --testsuite=UnitTests --testdox --colors=always
103+
```
84104

85105
## Running functional tests
86106

87-
vendor/bin/phpunit --testsuite=FunctionalTests --testdox --colors=always
107+
```shell
108+
vendor/bin/phpunit --testsuite=FunctionalTests --testdox --colors=always
109+
```

docs/book/v4/introduction/introduction.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ The benefit of Doctrine for the programmer is the ability to focus on the object
3535

3636
Our documentation is Postman based. We use the following files in which we store information about every available endpoint ready to be tested:
3737

38-
documentation/DotKernel_API.postman_collection.json
39-
documentation/DotKernel_API.postman_environment.json
38+
* documentation/DotKernel_API.postman_collection.json
39+
* documentation/DotKernel_API.postman_environment.json
4040

4141
## Hypertext Application Language
4242

@@ -94,12 +94,18 @@ One of the best ways to ensure the quality of your product is to create and run
9494

9595
We have 2 types of tests: functional and unit tests, you can run both types at the same type by executing this command:
9696

97-
php vendor/bin/phpunit
97+
```shell
98+
php vendor/bin/phpunit
99+
```
98100

99101
## Running unit tests
100102

101-
vendor/bin/phpunit --testsuite=UnitTests --testdox --colors=always
103+
```shell
104+
vendor/bin/phpunit --testsuite=UnitTests --testdox --colors=always
105+
```
102106

103107
## Running functional tests
104108

105-
vendor/bin/phpunit --testsuite=FunctionalTests --testdox --colors=always
109+
```shell
110+
vendor/bin/phpunit --testsuite=FunctionalTests --testdox --colors=always
111+
```

0 commit comments

Comments
 (0)