I'm start that project because would like to try how work together latest Angular and Django.
%%% Work in progress %%%
You must install PostgreSQL(>=9.4). You must create database 'todo_list', then add and user 'todo_list' with password 'todo_list' and make him owner of created database.
all commands run inside backend folder
-
Install python(>=3.4).
-
Install virtuaenv tools and make virtual environment for project(optional).
a) Install virtualenv tools
pip install virtualenv
.b) Create virtual environment call command
virtualenv .venv
.c) Activate environment
source .venv/bin/activate
(on Linux). -
Install requirements
pip install -r requirements/base.txt
. -
Run migrations
python manage.py migrate
-
Start dev-server
python manage.py runserver
all commands run inside frontend folder
-
You must have installed npm package manager
-
Run
npm install
for install dependencies -
Run
npm run start
for start dev server( for correct works requests to api, you must start backend dev server, step 5 in Backend section).
I'm thinking long time about public deploy tools(with config from server) or keep in secret. And for now I'm make choice publish systemd circus service and fabfile wich I'm use for upgrade server. So I will keep in secret nGinx config file and version of django settings which used on server. I'm also hopeful if anyone find vulnerable in those configs or in the project, they will send direct email to me.
- I'm to know about TDD from book Percival Test-Driven Development with Python of Harry J.W.(I'm read first edition, soon will released 2 edition, but some aspects from first book is still actual)
- Łukasz Wojciechowski article about angular2 and web-sockets.
- I'm take implementation of web-sockets for angular2 by Peter Kassenaar from his github repo
0.1.0 - Django 1.11, Channels 1.x, Angular 4