GithubHelp home page GithubHelp logo

createdbyfahad / django-react-example Goto Github PK

View Code? Open in Web Editor NEW
57.0 0.0 18.0 3.48 MB

A simple web app example that utilizes Django framework as a backend and React/Redux (from react-boilerplate) as a front end.

Python 14.15% JavaScript 79.84% HTML 0.45% CSS 0.61% Handlebars 4.96%
django react django-rest-framework react-boilerplate jwt-authentication redux

django-react-example's Introduction

Django & React ❤️

An example of an app (Simple Notes) built using Django as a backend, and fully seperate React app as a front end. It uses jwt-token in user authorization.

Screenshots

How to run

After cloning the repo, do the following to setup the app:
1- from the backend folder, execute those lines:

source env/bin/activate
pip install -r requirements.txt
python manage.py createsuperuser
python manage.py runserver

2- the django server should now be up and running.
3- from the frontend folder, execute those lines:

npm install
npm start

4- now go to the url located after Access URLs:
5- and you should see the website in the browser

About the project

In this project, I try to provide a simple boilerplate for anyone who wants to use Django as a backend, and offer jwt-auth based API.
Also, I implemented a simple notes app example using React (react-boilerplate). In case you have any questions about the code, please feel free to ask.

django-react-example's People

Contributors

createdbyfahad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.