-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vlad S
authored and
uladzimir_sadkou
committed
Oct 22, 2022
1 parent
761545f
commit 3654298
Showing
18 changed files
with
83 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -9,31 +9,15 @@ There is the [DEMO](http://uls.northeurope.cloudapp.azure.com/) ULE-shop. | |
|
||
<p><img src="https://preview.ibb.co/dyyGMb/sshot_shop.png" alt="sshot_shop" border="0"></p> | ||
|
||
1. Setup (install/create) Database and PHP server. | ||
2. Install [Composer](https://getcomposer.org/doc/00-intro.md) | ||
3. Install [npm](https://docs.npmjs.com/getting-started/installing-node). | ||
4. Install git. Get this project from Github (git clone). | ||
4. Setup docker and docker-compose on your local machine. | ||
5. Create the .local_data folder in the root directory of the project | ||
6. Install git. Fetch this project from Github (git clone). | ||
5. Copy ".env.example" file and rename to ".env". Edit the .env file (connect to DB). | ||
6. Run "composer update". | ||
7. Run "npm install", then "npm run dev". | ||
8. Run "php artisan key:generate". It will add application key to the .env file. | ||
9. Run "php artisan migrate" [Laravel Migrations](https://laravel.com/docs/9.x/migrations). | ||
10. Important! It's the correct way to seeding: "php artisan db:seed --class=DatabaseSeeder" [Laravel Seeding](https://laravel.com/docs/5.5/seeding). | ||
11. Setup "Document root" for your project on server like ".../my_example_shop/public". | ||
12. For testing back-end: copy and rename .env.testing.example to .env.testing, then add your app_key from .env file and run the command "php artisan test" | ||
13. For testing Vue.js run the command "npm run test" | ||
14. To check code quality run: ./vendor/bin/phpstan analyse --memory-limit=2G. Setup code quality Level 0-8 in the file phpstan.neon. | ||
|
||
### Docker-compose for local development: | ||
- setup docker and docker-compose on your local machine. | ||
- create the .local_data folder in the folder with your project | ||
- install mkcert and generate ssl certificates: | ||
``` | ||
brew install mkcert nss | ||
mkcert -cert-file .docker/nginx/dev/site.crt -key-file .docker/nginx/dev/site.key localhost 127.0.0.1 | ||
``` | ||
- run docker-compose up -d | ||
|
||
localhost:8088 -- [Temporal](https://temporal.io) UI | ||
6. Run "docker-compose up" (you may need to restart docker-compose up 3-4 times). | ||
|
||
|
||
### Local endpoints: | ||
- localhost -- Main App | ||
- localhost:8088 -- [Temporal](https://temporal.io) UI | ||
|
||
_Uladzimir Sadkou_: [email protected] |
This file contains 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 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 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
5 changes: 4 additions & 1 deletion
5
database/seeds/AdminsTableSeeder.php → database/seeders/AdminsTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
database/seeds/CatalogsTableSeeder.php → database/seeders/CatalogsTableSeeder.php
This file contains 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
4 changes: 3 additions & 1 deletion
4
database/seeds/DatabaseSeeder.php → database/seeders/DatabaseSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
...se/seeds/ProductPropertiesTableSeeder.php → .../seeders/ProductPropertiesTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
...ds/ProductsRelatedProductsTableSeeder.php → ...rs/ProductsRelatedProductsTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
database/seeds/ProductsTableSeeder.php → database/seeders/ProductsTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
database/seeds/PropertiesTableSeeder.php → database/seeders/PropertiesTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
database/seeds/PropertyValuesTableSeeder.php → ...ase/seeders/PropertyValuesTableSeeder.php
This file contains 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
7 changes: 6 additions & 1 deletion
7
...base/seeds/RelatedProductsTableSeeder.php → ...se/seeders/RelatedProductsTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
...base/seeds/ShippingMethodsTableSeeder.php → ...se/seeders/ShippingMethodsTableSeeder.php
This file contains 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
5 changes: 4 additions & 1 deletion
5
database/seeds/UnitsTableSeeder.php → database/seeders/UnitsTableSeeder.php
This file contains 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 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