Ecom Api
Setup
Prerequisites
- php 8.0
- laravel 8.0
Installation
First start by cloning this repository into a WHAM and Ecom API project directory (This is required). e.g. You will have a folder structure that will start to look like this:
/toolstation
/WHAM
/Ecom-Api
This makes easy to access methods, functions, models and services from the WHAM repo.
Next, clone the Ecom API and WHAM repositories.
git clone git@bitbucket.org:toolstation/ecom-api.git
git clone git@bitbucket.org:toolstation/wham.git
Note:-
- Both the directories are into same folder.
- Checkout into
epic/laravel-8branch for the WHAM repo must requires. - Required
GlobalProtect VPN.
Next create one .env file and copy all the details of .env.tsnl file from within the Ecom API Project. Then modify the database connection details.
Steps to install Ecom API
Note:- Not skip any steps.
Install composer dependencies
composer install
Create your application key
php artisan key:generate
Publish all the wham module assets
php artisan vendor:publish --tag=toolstation-config --force
Finally, run the following command to get started.
php artisan serve
This will give you a development server, accessible via http://localhost:8000.