A simple todo application demonstrating the basic usage of rucken Angular5+ with Django REST framework.
- Clone or fork this repository
git clone --recursive https://github.com/rucken/todo-django.git - Make sure you have Python installed version 3.x
- Make sure you have node.js installed version 6+
- Make sure you have NPM installed version 3+
- Open command line in folder
todo-django - Install virtual env for isolate libs used on project
pip install virtualenvand init itvirtualenv venv - Switch to virtual env
venv\Scripts\activateor on windows mingw32source venv/Scripts/activate - run
pip install -r requirements.txtto install project dependencies - run
python manage.py migrate rucken_todo 0001_initialto init first migrations - run
python manage.py migrateto init all migrations - run
python -c "import shutil; shutil.copy2('_README.md', 'frontend/README.md');"to copy README.md to frontend - Go to frontend
cd frontendand runnpm installto install frontend dependencies - Build frontend, run
npm run build - Collect static
python manage.py collectstatic --noinput - Run server
python manage.py runserver 0.0.0.0:5000 - Open browser to
http://localhost:5000
Demo application on Heroku
- test admin username: admin, password: 12345678
- test user 1 username: user1, password: 12345678
- test user 2 username: user2, password: 12345678
MIT