Skip to content

codewithmuh/React-Django-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-django-react-sample-app

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

  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published