skazi019 / ImportTest_OmkeshWebsite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instuctions

This project uses django for backend and react for frontend

Steps for deploying in Production (react-django hybrid mode)

  • Change the REACT_APP_BACKEND_URI to the production website URL
  • Build your react app with command npm run build
  • collect the static files python manage.py collectstatic
  • transfer the index.html from build folder of react to templates folder in django
  • make sure the root url / is serving this index.html
  • start your django server python manage.py runserver
npm run build
python manage.py collectstatic --no-input
cp build/index.html templates/
cp build/manifest.json static/
cp build/robots.txt static/
python manage.py runserver

About

License:MIT License


Languages

Language:JavaScript 57.3%Language:Python 39.4%Language:CSS 1.7%Language:HTML 1.1%Language:Dockerfile 0.6%