Giter VIP home page Giter VIP logo

single-draw-app-reactdjango's Introduction

Deployed Application

https://drawing-app-dev3-backend.herokuapp.com/draw/

Supported Browsers: Chome, Firefox

Browsers not supported: Safari

Stacks Architecture

architecture

React is used for front-end component while django framework is used as the backend component. React role is in this stack is to visualize the drawing elements and it's navbar components. Using axios npm module to consume API calls available in the backend.

Django framework utilized multiple building blocks to expose API services required by front-end. This application utilize Django Rest framework to expose database contents that has its schema defined and enforced by Django Models. Two internal Django application was created, one for Drawing application and another for user management. Each of these Django applications has its own models to maintain. Both DrawApp and Users models are protected by Django Rest-Auth, a module that expose APIs to register, authenticate and manage user accounts.

Rest-Auth authentication is implemented across all exposed APIs. Hence, when API calls are made to access the resources, users would have to be logged in (indicated by authenticated token) and by default, only drawings generated by its user can be accessible for RESTful Method operation (GET, POST, PUT, DELETE).

How to run this Drawing App locally

  1. Clone this repository on the main branch
  2. Create Virtual Environment
$ python3 -m venv venv
  1. activate virtual environment
$ pip install pipenv #python2, or,
$ pip3 install pipenv #python3
  1. enter virtual environment shell
$ pipenv shell
  1. install all Django dependencies
$ pip install requirements.txt
  1. Build React front end
$ npm run build
  1. Create migrations on your virtual environment
$ python manage.py makemigrations
  1. Migrate Django backend models into DB
$ python manage.py migrate
  1. Run the application
$ python manage.py runserver

The application is now accessible at:

single-draw-app-reactdjango's People

Contributors

matthew-ardi avatar

Watchers

James Cloos 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.