|
|
@@ -1,5 +1,8 @@
|
|
|
# HealthDiaryBackend
|
|
|
|
|
|
+Simple and small backend for my another project HealthDiary.<BR>
|
|
|
+Using Django, DjangoRestfulFramework, simple token-based HTTP Authentication scheme.
|
|
|
+
|
|
|
Setup requirement
|
|
|
`pip install -r requirements.txt`
|
|
|
|
|
|
@@ -14,7 +17,7 @@ Initial
|
|
|
3. Now sync your database for the first time
|
|
|
`python manage.py migrate`
|
|
|
4. Create admin user `python manage.py createsuperuser --email admin@example.com --username admin`
|
|
|
-5. Run project ``
|
|
|
+5. Run project `python manage.py runserver 0.0.0.0:8000`
|
|
|
|
|
|
|
|
|
Current actions
|
|
|
@@ -30,7 +33,3 @@ Current actions
|
|
|
`python manage.py dumpdata --format=json indicatortype.IndicatorType > ./apps/indicatortype/fixtures/initial_indicatortype.json`
|
|
|
5. Load fixtures data
|
|
|
`python manage.py loaddata --format=json indicatortype.IndicatorType`
|
|
|
-
|
|
|
-
|
|
|
-`pip install gunicorn`
|
|
|
-`gunicorn --bind 0.0.0.0 healthdiarybackend.wsgi`
|