Adobe XD file for design
Site Design
wordpress site is dockerized and folder is WordpressTheme so download docker on machine
To Run make command in window download Gnuwin32
make docker-start
or cd into WorrdpressTheme
docker-compose up -d
first time it will start wordpress installation.
go to plugin and activate woocommerce plugin (if it is not install add a new plugin and download and install a plugin)
After active plugin there will be Woocommerce setup start or you can go to woocommerce setting ,setup woocommerce.
Choose any theme because we are going to use only rest api
download Dummydata for development
Tools → import → WooCommerce Products → Run importer
sample data location:
\wp-content\plugins\woocommerce\sample-data\sample_product.csv
according to woocommerce api permalinks need to be like
http://localhost/2020/05/sample-post/
?p=123 is not allowed to access rest api
Go to woocommerce → setting → Advanced → Rest Api
after that copy and both key and added to create .env file in frontend folder
note:
https: woocommerce api is using basic auth
http: woocommerce api is using oauth1.0 (for development we need to use oauth1.0)
REACT_APP_CONSUMER_KEY=xxxxx
REACT_APP_CONSUMER_SECRET=xxxxx
REACT_APP_SIGNATURE_METHOD=HMAC-SHA1
REACT_APP_BASE_URL=http://localhost/wp-json/wc/v3
This is not dockerized at the moment . it is in development. for First time
make react-install
Run app
make react-start
Run both app
make start