Skip to content

Commit de86fc3

Browse files
author
root
committed
Merge branch '8.x' of github.com:uisits/ui into 8.x
2 parents a746b55 + 7e9af18 commit de86fc3

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

README.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,108 @@ This package helps in separating base laravel application in docker build step.
1919
> > You are free to update the stubs once they are published.
2020
> > You can also install other required packages as you would previously.
2121
22+
## Local Set Up
23+
- Create a fresh laravel application as we do for all projects
24+
- Create a folder ``` packages ```` at ``` /var/www/laravel/packages```
25+
- Create a folder ``` uisits``` which is the vendor name for our package in the packages directory at ``` /var/www/laravel/packages/uisits```
26+
- cd into this vendor name folder (``` cd /var/www/laravel/packages/uisits```) and run ``` git clone git@github.com:uisits/ui.git ```
27+
- This copies all the files of the package from github.
28+
- To work on the **7.x** run ``` git checkout 7.x``` (Here 7.x is the name of the branch on github)
29+
- Similarly to work on the **8.x** run ``` git checkout .8x``` (Here 8.x is the name of the branch on github)
30+
- To use this package locally we need to add this package to our laravel app. We can do this by adding the following to out ``` composer.json``` file at ``` /var/www/laravel/composer.json```.
31+
```php
32+
"repositories": {
33+
"local": {
34+
"type": "path",
35+
"url": "./packages/uisits/ui"
36+
}
37+
},
38+
```
39+
Now your entire composer.json file looks like this:
40+
```php
41+
{
42+
"name": "laravel/laravel",
43+
"type": "project",
44+
"description": "The Laravel Framework.",
45+
"keywords": [
46+
"framework",
47+
"laravel"
48+
],
49+
"license": "MIT",
50+
"repositories": {
51+
"local": {
52+
"type": "path",
53+
"url": "./packages/uisits/ui"
54+
}
55+
},
56+
"require": {
57+
"adldap2/adldap2-laravel": "^6.0",
58+
"fideloper/proxy": "^4.4",
59+
"fruitcake/laravel-cors": "^2.0",
60+
"laravel/framework": "^7.0",
61+
"laravel/passport": "^8.4",
62+
"laravel/tinker": "^2.0",
63+
"php": "^7.2.5|^8.0",
64+
"uabookstores/laravel-shibboleth": "3.1.1",
65+
"uisits/ui": "^7.0",
66+
"yajra/laravel-oci8": "^7.0"
67+
},
68+
"require-dev": {
69+
"barryvdh/laravel-debugbar": "^3.3",
70+
"facade/ignition": "^2.0",
71+
"fzaninotto/faker": "^1.4",
72+
"laravel/dusk": "^5.5",
73+
"mockery/mockery": "^1.0",
74+
"nunomaduro/collision": "^4.1",
75+
"phpunit/phpunit": "^8.5"
76+
},
77+
"config": {
78+
"optimize-autoloader": true,
79+
"preferred-install": "dist",
80+
"sort-packages": true
81+
},
82+
"extra": {
83+
"laravel": {
84+
"dont-discover": [
85+
"laravel/dusk"
86+
]
87+
}
88+
},
89+
"autoload": {
90+
"psr-4": {
91+
"App\\": "app/"
92+
},
93+
"classmap": [
94+
"database/seeds",
95+
"database/factories"
96+
]
97+
},
98+
"autoload-dev": {
99+
"psr-4": {
100+
"Tests\\": "tests/"
101+
}
102+
},
103+
"minimum-stability": "dev",
104+
"prefer-stable": true,
105+
"scripts": {
106+
"post-autoload-dump": [
107+
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
108+
"@php artisan package:discover --ansi"
109+
],
110+
"post-root-package-install": [
111+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
112+
],
113+
"post-create-project-cmd": [
114+
"@php artisan key:generate --ansi"
115+
]
116+
}
117+
}
118+
```
119+
- All that is now required is to run ``` composer install uisits/ui ```. This should now install the package from the local directory.
120+
121+
> Note:
122+
> Sometimes you might need to run ``` composer dump-autoload```.
123+
22124
## Testing
23125
- Create a docker container.
24126
- remove the current laravel application at ``` /var/www/laravel```

0 commit comments

Comments
 (0)