GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aridclown/django-react-example: A simple integration between Django API and React App

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
django_react_proj
django_react_proj
 
 
students-fe
students-fe
 
 
students
students
 
 
README.md
README.md
 
 
db.sqlite3
db.sqlite3
 
 
manage.py
manage.py
 
 

Repository files navigation

React App + Django API

A simple integration between a Django API and a React App.

This project consists of two internal projects:

  • students: the Django project containing the REST API along with all the backend code;
  • students-fe: the React project with all the Node dependencies, settings and things related to the frontend.

Run it locally

In order to run the projects locally you need to have Node, npm and python3 installed on your machine.

Running the Django project

First, create a Python virtual environment to isolate the projects:

python3 -m venv logrocket_env

Then, activate it:

source logrocket_env/bin/activate

cd into the venv and clone the project from GitHub:

git clone https://github.com/diogosouza/django-react-logrocket.git

Add the Django dependencies:

pip install django djangorestframework django-cors-headers

Finally, cd into the django-react-logrocket folder and run the project:

python manage.py runserver

That's it!

Access the address http://localhost:8000/api/students/ and check if the API is up.

Running the React project

First, cd the students-fe directory and run:

npm install
npm start

About

A simple integration between Django API and React App

Topics

djangodjango-apiintegrationjavascriptlogrocketpythonreactreactjs

Resources

Readme
Activity

Stars

105 stars

Watchers

5 watching

Forks

50 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.