Sample BigCommerce App using Python, Django, and React
๐๐จ๐ฐ ๐ญ๐จ ๐ซ๐ฎ๐ง ๐ข๐ญ ๐ข๐ง ๐๐จ๐๐๐ฅ ๐ฆ๐๐๐ก๐ข๐ง๐ ?
Open terminal frst. You have to follow these points
1.Download anaconda
https://www.anaconda.com/products/individual
- Open terminal.
3.create a virtual environment with python 3.8 using this commond "conda create --name py38 python=3.8"
4.Then activate virtua environment using this commond "conda activate py38"
5.Then run this commond "pip install -r requirements.txt"
6.Then run this commond to run project in local machine "python manage.py runserver 8054"
๐ ๐๐ซ ๐๐ ๐ซ๐จ๐ค : In .env file use http instead of https for callBackURL for ngrok.
๐๐ญ๐๐ฉ๐ฌ ๐ญ๐จ ๐๐จ๐ฅ๐ฅ๐จ๐ฐ ๐ญ๐จ ๐ข๐ง๐ฌ๐ญ๐๐ฅ๐ฅ ๐ญ๐ก๐ ๐๐ฉ๐ฉ ๐จ๐ง ๐๐ข๐ ๐๐จ๐ฆ๐ฆ๐๐ซ๐๐๐ฌ๐ญ๐จ๐ซ๐.
๐ช๐ฒ ๐๐ถ๐น๐น ๐ต๐ถ๐ด๐ต๐น๐ ๐ฟ๐ฒ๐ฐ๐ผ๐บ๐บ๐ฒ๐ป๐ฑ ๐๐ฎ๐๐ฐ๐ต๐ถ๐ป๐ด ๐๐ถ๐ฑ๐ฒ๐ผ ๐ฑ๐๐ฟ๐ถ๐ป๐ด ๐ถ๐ป๐๐๐ฎ๐น๐น๐ฎ๐๐ถ๐ผ๐ป ๐ฎ๐ฝ๐ฝ ๐ผ๐ป ๐๐ต๐ฒ ๐๐๐ผ๐ฟ๐ฒ. Here is installation video https://youtu.be/FKf5pOBC3z0
1.Open Url https://login.bigcommerce.com/
2.login your account
3.from side menue go to Advance Setting > API Accounts
4.Click Create API Account then Create V2/V3 API Token
5.Fill Name of API
6.Select All Higer level Permissions
7.Open Url https://devtools.bigcommerce.com/my/apps
8.Create an App
9.Click View Client ID and Note down Client ID Client Secret
10.Open URL https://dashboard.heroku.com/apps
11.Create a new App
12.Select Deployment Method Github
13.Enable Automatic Deployment
14.go to setting tab
15.Click Reveal Config Variable and Add following Variables
appClientId = elfctt4r8cai3u6cw4yg70lamxroke8
appClientSecret = ee074094318cdbd56bba82dd7e1ba9df2f5794b51fdeb27c0e8ac0f88a95f904
16.callBackURL = https://inventroman.herokuapp.com/cb/auth
17.DISABLE_COLLECTSTATIC=1
18.DEBUG_COLLECTSTATIC = 1
19.From Deploy Tab Click Deploy Branch
20.Open Url https://devtools.bigcommerce.com/my/apps
21.Click Edit App and Go to Technical Tab of APP and Fill the following fields
22.Auth Callback URL (add /auth at the end of heroku app url)
23.Load Callback URL
24.Uninstall Callback URL
25.Click Update
26.Go to URl Open Url https://login.bigcommerce.com/
27.from side Menue Apps > My Apps
Note: To run React at development run "yarn run" and to compile Reactjs code run "yarn build" at root level folder.