Skip to content

meiyerDev/shop-manager

Repository files navigation

Build Status Total Downloads Latest Stable Version License

Shop manager

Simple store where a customer can buy and manage the payment of their orders through PlacetoPay

Steps to install

Without Sail or Docker

  1. Prerequisities
  • Clone project and enter to folder:
git clone https://github.com/themey99/shop-manager.git && cd shop-manager
  1. Install dependencies:
composer install
  1. Copy or Create .env:
cp .env.example .env
  1. Set your database config and PlacetoPay Login and TranKey
  2. Install frontend dependencies:
npm install or yarn
  1. Compile frontend:
npm run dev or yarn run dev
  1. Running seeds:
php artisan db:seed
  1. Start server:
php artisan serve

With Sail or Docker

  1. Prerequisities
  • Install docker in your workstation
  • Install docker-compose in your workstation
  • Clone project and enter to folder:
git clone https://github.com/themey99/shop-manager.git && cd shop-manager
  1. Install dependencies:
docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/var/www/html -w /var/www/html laravelsail/php80-composer:latest composer install --ignore-platform-reqs

If you are using sail, only follow these steps:

  1. Build image:
sail build
  1. Start containers:
sail up -d
  1. Compile frontend:
sail yarn run dev
  1. Running seeds:
sail artisan db:seed

But if you are only using docker, follow these steps:

  1. Set environment:
export WWWUSER="your $WWWUSER or $UID"
export WWWGROUP="your $WWWGROUP or $(id -g)"
  1. Start containers:
docker-compose up -d
  1. Compile frontend:
docker-compose exec -u sail shopmanager.api yarn run dev
  1. Running seeds:
docker-compose exec -u sail shopmanager.api artisan db:seed

Running tests

  1. Prerequisities
  • Install sqlite
  • Enter to root project folder

If you aren't using docker or sail, follow these steps:

  1. Eject tests:
php artisan test # (--filter is optional to filter by some tests)

If you are using sail, follow these steps:

  1. Start containers:
sail up -d
  1. Eject tests:
sail test # (--filter is optional to filter by some tests)

But, if you are using docker, follow these steps:

  1. Set environment:
export WWWUSER="your $WWWUSER or $UID"
export WWWGROUP="your $WWWGROUP or $(id -g)"
  1. Start containers:
docker-compose up -d
  1. Eject tests:
docker-compose exec -u sail shopmanager.api php artisan test # (--filter is optional to filter by some tests)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published