ScandiPWA
Create Magento App
Create ScandiPWA App
User Manual
GitHub
Search…
Why Scandi
🚀
Quick-start Guide
🗺
Roadmap
Introduction to the Stack
Setting up Scandi
Developing with Scandi
Override Mechanism
Extensions
Working With Magento
Developer Tools
Deploying Your App
Structure
Directory Structure
Building Blocks
Application assets
Code Style
Tutorials
Customizing Your Theme
Payment Method Integration
Creating a Custom Widget
Video Tutorials
Dark Mode Extension
Deploying Native Apps
Product 3D Model Extension
Social Share, Full Extension Development
Accessing Magento 2 Controllers
STEP-1 Creating Magento 2 Module
STEP-2 - Create Magento 2 Frontend Route and Basic Controller
STEP-3 Accessing Magento 2 Controller, Bypassing ScandiPWA frontend
STEP-4 Creating ScandiPWA Extension with additional dependencies
STEP-5 Creating Plugin and Axios request
About
Support
Release notes
Technical Information
Data Analytics
Contributing
Powered By
GitBook
STEP-4 Creating ScandiPWA Extension with additional dependencies
1.
Create scandipwa extension using
scandipwa-cli
,
for that navigate to your theme folder, and execute
scandipwa extension create @scndipwa/vesrion
2.
To add
Axios
navigate to newly created extensions, and add
Axios
as a dependency to
package.json
scandipwa/packages/@scandipwa/version/package.json
1
{
2
"name"
:
"@scandipwa/version"
,
3
"version"
:
"0.0.0"
,
4
"license"
:
"OSL-3.0"
,
5
"scandipwa"
:
{
6
"type"
:
"extension"
7
},
8
"dependencies"
:
{
9
"axios"
:
"0.22.0"
10
},
11
"eslintConfig"
:
{
12
"extends"
:
"@scandipwa"
13
}
14
}
15
Copied!
3. From them folder execute
npm install
Useful Materials
ScandiPWA CLI
Previous
STEP-3 Accessing Magento 2 Controller, Bypassing ScandiPWA frontend
Next
STEP-5 Creating Plugin and Axios request
Last modified
7mo ago
Copy link