Skip to content

Instantly share code, notes, and snippets.

@chayandatta
Last active October 31, 2019 13:05
Show Gist options
  • Save chayandatta/1f898179fde43ad6369927c2cf2fbd09 to your computer and use it in GitHub Desktop.
Save chayandatta/1f898179fde43ad6369927c2cf2fbd09 to your computer and use it in GitHub Desktop.
django-react-config

FOR BACKEND

pip3 install coverage==4.5.4

pip3 install Django==2.2.6

pip3 install djangorestframework==3.10.3

pip3 install pytz==2019.3

pip3 install sqlparse==0.3.0

FRONTEND

python manage.py startapp frontend

mkdir -p ./frontend/src/components

mkdir -p ./frontend/{static,templates}/frontend

npm init -y

npm i -D webpack webpack-cli

npm i -D @babel/core babel-loader @babel/preset-env @babel/preset-react babel-plugin-transform-class-properties

npm i react react-dom prop-types

npm i redux react-redux redux-thunk redux-devtools-extension

npm run dev

FOR GIT

git init

git config --list --show-origin

git config user.email ##

git add .

git commit -m ""

git remote add origin ##

git remote -v

git push origin master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment