/django-ng2-starter

Django Starter kit featuring Angular 2

Primary LanguageJavaScriptMIT LicenseMIT

django-ng2-starter

Boilerplate featuring Angular2 and Django.

This repository is based on the following tutorial series.

Django and Angular2 Tutorial - Getting Staretd

and

Django and Angular2 Tutorial part 2 - Rendering Templates

Project Setup

#Create a new Virtual Environment.
virtualenv ng2env
cd ng2env

#Install django
pip install -r requirements.txt

#Fork or clone this repo.
git clone https://github.com/aswinkp/django-ng2-starter.git
cd django-ng2-starter/ngApp/

#install NPM dependencies
npm install
#start npm
npm start

#Open a new terminal window
cd ../
#Run Django Development Server
python manage.py runserver

Though we use django server npm should be running behind to compile typescript to javascript instantly.