@liswood-tache/browsbox-admin-frontend v4.7.3
Browsbox Admin Frontend
Local Development Guide
Setup
- Copy
.envto.env.local - Setup your correct env variables:
REACT_APP_BROWSBOX_URL- the URL of you local environment (ex: http://browsbox.local, http://localhost, or whatever you have),REACT_APP_BROWSBOX_AUTH_COOKIE- it should be yourPHPSESSID=XXXXXXXXXXXXXXXXXXXXXXXfrom the browser. You can find it in your browser developer tools, but first you have to login as user with roleROLE_SUPER_ADMIN.
Remember to always update the Cookie value of your PHPSESSID (you can get it from your browser storage) to allow access restricted /api admin's area
when application is running in development mode.
Running
Go into react directory and run:
npm startReact app will start in a few seconds and appear in new browser tab.
Preview
If you would like to preview you changes in more like PROD mode, then build your assets and copy them into public directory of Symfony app.
There is a command to do this for you.
Go into react directory and run:
npm run build && npm run copy-appNow you can visit your regular local host of Symfony app. Admin assets should be updated.
9 months ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago