Posts

Showing posts from October, 2024

Front end React app with DJango Backend

Image
 If you're having very less time which is likely and really want to see it working first.. git clone https://github.com/bmkamath2000/DJango-Projects-FSW.git cd DJango-Projects-FSW cd 15DJangoSchool 515DJangoSchool DJangoSchool 15DJangoSchool then execute following commands cd frontend npm install (which recreates the node_modules folder) npm run build (this builds the frontend) cd .. (comes out of frontend directory) python manage.py collectstatic (bundles all static files and stores in a folder) python manage.py runserver (launches the backend server) Finally headover to http://localserver:8000/enroll to see the react app inside the django project. If you're wondering what this is all about, here is a brief: You might have known that DJango is a python framework which has very powerful features and can create a working backend server in matter of minutes. You will need django installed via  pip install django and react via npm install -g react (assuming you already have pytho