import all requirements.txt
Database -> postgreSQL
can set table data and can keep datajson to easy.
Editor -> sublime , vs studio code.
API -> trello API + chart.JS
-trello api -> get data (https://developers.trello.com/reference#)
-chart.JS -> show graph
It requires database named trello_test
with this settings:
'NAME': 'trello_test',
'USER': 'postgres',
'PASSWORD' : <SECRET>,
'HOST': 'localhost',
'PORT': 5432,
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
- Never commit to
master
- Nerver merge to
master
without be reviewed - Always put branch name in Trello card
cd env
source bin/activate
# for window
pip install virtualenv
virtualenv py34
.\py34\scripts\activate
(env)
should displayed on your terminal
Make sure you are in master
git branch
Create new branch
# longer way
git branch branch_name
git checkout branch_name
# shorter way
git checkout -b branch_name
git branch -D branch_name
git diff
- increase function rest_Framwork (example to use. localhost:8000/api?id=1)
pip install django-filter
pip install djangorestframework-filters
(https://developers.trello.com/page/authorization?)
pip install django-cors-headers
-keep all file html
-keep all file css
-keep all file js
- keep all file project
#################################################
1.model.py -> create database model
2.viewsets.py , serializers -> make rest api send to urls.py
3.urls.py -> get api url
4.views.py -> show content any template
5.url -> fix name / url to use html project
6.setting.py -> import , config about django project
7.filters -> increase filter function rest api
8.forms -> keep post data from user and send to database by views.py
#################################################
url = 'https://api.trello.com/1/board/(idboard-trello)/actions?key=(keyapp or key user)&token=(token user)'
apiTrello = requests.get(url)
data_json = apiTrello.json()
fetch_trello_data.py
- keep action in board trello to change requirement
fetch_trello_effort.py
- keep action in board trello to change effort
fetch_trello_movement.py
- keep movement in board trello
fetch_trello_storypoint.py
- keep number of change story point and keep number card to finish
calculating_change_record.py
- calculate action for each card
-createCard
-addChecklistToCard
-removeChecklistFromCard
-deleteCard
-updateCard (Change Description)
calculating_change_movement.py
-all movement in board trello
fixed state / status working
planning , doing , testing , done
calculating_change_effort.py
- calculate action for each card
-addMemberToCard
-removeMemberFromCard
-updateCustomFieldItem
JOE TEST
>>
Eiei Test.