Skip to content

panchyo0/DjangoRest-Angular4-Demo

Repository files navigation

Django REST Framework and Angular4

A simple example application where an Angular 4 app talks to an API running Django REST framework.

Setup

Install dependencies and run migrations to set up the app:

  • Create a virtualenv
  • Run sudo sh build-app.sh
  • Or you can follow the steps in setup.txt

Run the app

Run the REST server:

# in the exampleapp folder
python manage.py runserver

Start the Angular 2 app:

# in the angular2 folder
npm start