#Frontend
Using:
- React Hooks
- Redux
- Axios
Structure:
- api (backend)
- assets (static css/fonts/img/js)
- src (develop directory)
- api (all custom api functions using by axios)
- axios (global axios)
- common (additional components and other)
- modules (main components)
- redux (create store & get reducers from modules / components)
- template
Config to start:
According to use browser-sync-webpack-plugin in develop mode,
you should set localhost = 'http://your.site'
(webpack.config.js)
Installation:
- Put all files from Repo to your root directory of project.
- Create
api
folder (here, in the root directory) and all content from repo: https://github.com/iqwik/pizza-backend place there.
yarn
Production:
yarn build
- bundle and other static files will be placed here(in the root):
index.php
andassets/*
Develop:
yarn dev
yarn eslint
- for develop you need only
src
folder