Small demo app to build forms in angular from django modelSerializers with django-rest-framework.
Right now working on angular1.x, support for angular2 is coming...
pip install -r requirements.txt
Launch django on 127.0.0.1:8000
cd back
./manage.py migrate
./manage.py runserver
front
repositoryLaunch the angular1.x app on 127.0.0.1:8080 using ES6 and webpack
cd front
npm install
npm start
front2
repositoryLaunch the angular1.x app on 127.0.0.1:3000 with webpack
cd front2
npm install
npm start
With sqlite3 (by default with this repo), you may face problems with model field's validators.
Example: a PositiveIntegerField
, after being serializer, won't have min_value=0
as an attribute.
It's because sqlite does not enforce any limits on its fields.
You might want to use another db. To use postgres, uncomment the requirements.txt line with postgres, pip install it, setup your postgres database and update the settings.py.
Creators: Xavier Ordoquy @xordoquy and Adrien Brunet @adrienbrunet