Skip to content

Arimuuuura/laravel-ec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel8 で作る ECサイト

Information

Version

mysql      : 5.7
php        : 7.4
nginx      : 1.2
phpMyAdmin : latest
Laravel    : 8.*
    - laravel-debugbar
    - laravel/breeze : 1.*

Dummy data

admin:
    url: http://localhost:8080/admin
    user: admin1
    email: [email protected]
    password: password123

owner:
    url: http://localhost:8080/owner
    user: owner1
    email: [email protected]
    password: password123

user:
    url: http://localhost:8080/
    user: user1
    email: [email protected]
    password: password123
    
credit card:
    email: [email protected]
    number: 4242424242424242
    deadline: 12 / 30
    sec number: 123
    name: user1

composition

Google Spreadsheet

If you want to try a payment service, you need to register with stripe and get your public and secret keys.

stripe(payment service): https://dashboard.stripe.com/

Setup

$ git clone https://github.com/y-arimura1222/laravel-ec.git
$ cd laravel-ec
$ cp .env.sample .env
$ make init

<!--
If you want to try the payment service,
please add the public key and secret key of stripe.
 src/.env
    STRIPE_PUBLIC_KEY
    STRIPE_SECRET_KEY
 -->

web :
http://localhost:8080
phpMyAdmin :
http://localhost:8888/

If not the first time

<!-- docker compose up -->
$ make up

<!-- docker compose down -->
$ make down

You can know the contents of the command with Makefile

If you want to create your own environment using this docker-compose

$ git clone https://github.com/y-arimura1222/laravel-ec.git
$ cd laravel-ec
$ rm -r src
$ cp .env.example .env

<!-- Please rewrite this file to your own environment laravel-ec/.env -->

<!--
The docker/php/Dockerfile and docker/php/laravel-install.sh
are specifications for creating Laravel-ec.
There are many packages that are not needed just for checking the operation.
Edit it to suit your environment before the next command execution. 
-->

$ docker-compose up -d --build
$ docker-compose exec app sh < ./docker/php/laravel-install.sh

If you have successfully installed Laravel8.* rewrite the environment variables

laravel-ec/src/.env

Operation check

$ docker-compose exec app sh
$ php artisan migrate

<!-- If the command is successful -->
$ exit

web :
http://localhost:8080

phpMyAdmin :
http://localhost:8888/

Enjoy Laravel8.* simulation!

Thank you!

Releases

No releases published

Packages

No packages published

Languages