Starter pack for building an Angular 4 web application with Django backend. Includes Material Design library.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
npm
python3
pip
Clone the repository from git
git clone git@gitlab.com:codewiseio/Django-Angular-Webpack-Starter.git Create and enter python virtual environment.
virtualenv -p python3 venv source ./venv/bin/activate Install the python requirements
pip install -r requirements.txt Install database migrations
python manage.py migrate Create the super user.
python manage.py createsuperuser Install the angular/material dependancies
cd angular/app npm install cd ../.. python manage.py runserver Start the Django development server and open in your browser at http://localhost:8000.
cd angular/app webpack --watch This will watch the for changes in files in the angular app folder and rebuild as necessary.
cd angular/app npm start This will start the angular server which automatically refreshes the browser on changes.
NOT CURRENTLY SUPPORTED
Angular does not currently support multiple CSRF tokens. For this reason it is not recommended to run a seperate development server for the Django and Angular applications. This may change in the future.
ng g component my-new-component
Explain how to run the automated tests for this system
Explain what these tests test and why
Give an example Add additional notes about how to deploy this on a live system
from django.contrib import admin from django.db import models @admin.register(MyModel) class MyModel(models.Model): ... python manage.py makemigrations app --empty
Send Password Reset Emails DONE
Perform Password Reset - Monday
Perform Login - Tuesday
Allow user to change email and password - Wednesday
Material Icons from Local Host
AOT
Writing Django Tests - Thursday
Writing Angular Tests - Friday
Move Django Authenitcation to a Reusable App - Monday/Tuesday
Publish Django Authentication Module - Wednesday
Move Angular Authentication to a Reusable App - Thursday/Friday
Publish Angular Authentication Module - Saturday Nov-11
Create Contacts Application
Create Blog - Wednesday
Create
Create Oikos Application - C
Create
https://docs.djangoproject.com/en/1.11/ref/contrib/sites/
https://docs.djangoproject.com/en/1.11/topics/testing/overview/ https://docs.djangoproject.com/en/1.11/topics/testing/overview/#running-tests https://docs.djangoproject.com/en/1.11/topics/testing/advanced/#testing-reusable-applications
- Dropwizard - The web framework used
- Maven - Dependency Management
- ROME - Used to generate RSS Feeds
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Jeffrey Hallock - CodeWise.live
This project is licensed under the Artistic License 2.0 - see the LICENSE.md file for details
Thanks to the Angular and Material and Webpack teams!