Installation
This guide will help you run the FrontWing storefront locally with a Sylius backend.
✅ Requirement:
Node.js v20 or higher
A running Sylius backend with the Sylius API enabled and accessible
A
.envfile configured with your Sylius backend API URL
Installation
Fork and clone the repository
git clone https://github.com/<your-username>/FrontWing.git
cd FrontWingInstall dependencies
npm installSet up your
.envfile
Create a .env file in the root directory with the following:
API_URL=http://127.0.0.1:8000
PUBLIC_API_URL=http://127.0.0.1:8000Run in development mode
npm run devBackend Setup
If you don't have a Sylius backend ready, you can use the Sylius Standard Edition and follow these extra steps:
Configure CORS for local development Edit the file:
public/index.phpin your Sylius project (example):
💡Troubleshooting
API_URL is undefined – make sure
.envexists andAPI_URLpoints to a working Sylius instance.CORS errors – check that your Sylius backend sends appropriate
Access-Control-Allow-Originheaders (e.g. viaindex.php).ECONNREFUSED / fetch errors – ensure Sylius is running and accessible from your React frontend.
Last updated
Was this helpful?
