Giter Site home page Giter Site logo

alexmhack / django-angular-integrate Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 2.0 2.52 MB

Integrating Django and Angular by creating REST API and running both the servers separately

Python 0.27% JavaScript 98.11% TypeScript 0.19% HTML 0.04% CSS 1.39%
angular virtualenv django2 django2-angular6 tutorial heroku deployment django-rest-framework djoser

django-angular-integrate's Introduction

Django-Angular-Integrate

Integrating Django and Angular by creating REST API and running both the servers separately

Project Initialization

  1. Create virtualenv using pipenv

    pipenv install django djangorestframework django-cors-headers python-decouple
    
  2. Activate virtualenv using

    pipenv shell
    
  3. Start Django project

    django-admin startproject backend .
    
  4. Run migrations and create super user

    python manage.py migrate
    python manage.py createsuperuser
    
  5. Start frontend Angular project

    ng new frontend --style=scss --routing
    

    NOTE: I assume that you have NodeJS and NPM installed in your local computer

    --style=scss creates the styling file in scss format. --routing creates the routing module for the angular project

  6. Run angular server

    ng serve --open
    

Detialed Instructions On Project Coming Soon...

django-angular-integrate's People

Contributors

alexmhack avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.