Coder Social home page Coder Social logo

Comments (2)

tohjustin avatar tohjustin commented on May 26, 2024

Glad you found the project cool! 😄

So in django-react-template, the project is split into 2 parts:

1. /backend

  • contains the code for your app's API server (using Django REST framework + Postgres)
  • this server also hosts static files & you have to make sure that the files you want to serve are in the frontend/build directory (hardcoded here)

2. /frontend

  • contains the code for your react app
  • webpack is configured to bundle your frontend app into the /build directory

Since coincharts is based of create-react-app, npm run build already bundles our app into a /build directory (same as where django-react-template expects it's static files to be located at!)

To integrate this, you only have to replace the entire contents of /frontend directory with coinchart's code. Here's what I might do:

git clone https://github.com/scottwoodall/django-react-template
cd django-react-template

# remove unwanted code + clone `coincharts` into `/frontend` dir
rm -rf ./frontend
git clone https://github.com/tohjustin/coincharts.git ./frontend

from coincharts.

jsartre avatar jsartre commented on May 26, 2024

Thanks @tohjustin !

from coincharts.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.