1
+ <a href =" https://travis-ci.org/vchaptsev/cookiecutter-django-vue " >
2
+ <img src =" https://travis-ci.org/vchaptsev/cookiecutter-django-vue.svg?branch=master " />
3
+ </a >
4
+
1
5
Cookiecutter Django-Vue
2
6
=======================
3
7
@@ -8,17 +12,16 @@ inspired by [Cookiecutter Django](https://github.com/pydanny/cookiecutter-django
8
12
<img src =" https://i.imgur.com/SA8cjs8.png " />
9
13
</p >
10
14
11
-
12
15
Features
13
16
--------
14
17
15
18
- [ Docker] ( https://www.docker.com/ )
16
19
- [ 12 Factor] ( http://12factor.net/ )
17
- <!-- - Server: [Caddy ](https://caddyserver.com/) -->
18
- - Frontend: [ Vue] ( https://vuejs.org/ ) + vue-cli
20
+ - Server: [ Nginx ] ( https://nginx.org/ )
21
+ - Frontend: [ Vue] ( https://vuejs.org/ ) + [ vue-cli] ( https://cli.vuejs.org/ )
19
22
- Backend: [ Django] ( https://www.djangoproject.com/ )
20
23
- Database: [ PostgreSQL] ( https://www.postgresql.org/ )
21
- <!-- - [pipenv](https://github.com/pypa/pipenv) for python-requirements -->
24
+ - API: REST or GraphQL
22
25
23
26
Optional Integrations
24
27
---------------------
@@ -27,7 +30,9 @@ Optional Integrations
27
30
28
31
- Integration with [ MailHog] ( https://github.com/mailhog/MailHog ) for local email testing
29
32
- Integration with [ Sentry] ( https://sentry.io/welcome/ ) for frontend and backend errors logging
33
+ - Integration with [ Portainer] ( https://portainer.io/ ) (management UI for docker)
30
34
- Integration with [ Google Analytics] ( https://www.google.com/analytics/ ) or [ Yandex Metrika] ( https://tech.yandex.ru/metrika/ ) for web-analytics
35
+ - Automatic database backups
31
36
32
37
Usage
33
38
-----
@@ -45,24 +50,33 @@ will be created for you.
45
50
46
51
Answer the prompts with your own desired options. For example:
47
52
48
- ======================= GENERAL ====================== [ ]:
53
+ ======================== INFO = ====================== [ ]:
49
54
project_name [Project Name]: Website
50
55
project_slug [website]: website
51
56
description [Short description]: My awesome website
52
57
author [Your Name]: Your Name
53
58
54
- ======================= DEVOPS ======================= [ ]:
59
+ ====================== GENERAL ====================== [ ]:
60
+ Select api:
61
+ 1 - REST
62
+ 2 - GraphQL
63
+ Choose from 1, 2 [1]: 2
64
+ backups [y]: y
65
+ ==================== INTEGRATIONS =================== [ ]:
55
66
use_sentry [y]: y
56
- ======================= BACKEND ====================== [ ]:
67
+ use_portainer [y]: y
57
68
use_mailhog [y]: y
58
- custom_user [n]: n
59
- ======================= FRONTEND ===================== [ ]:
60
69
Select analytics:
61
70
1 - Google Analytics
62
71
2 - Yandex Metrika
63
72
3 - None
64
73
Choose from 1, 2, 3 [1]: 2
65
74
75
+ Project creation will cause some odd newlines and linter errors, so I'd recommend:
76
+
77
+ $ autopep8 -r --in-place --aggressive --aggressive .
78
+ $ npm run lint --fix
79
+
66
80
Now you can start project with
67
81
[ docker-compose] ( https://docs.docker.com/compose/ ) :
68
82
@@ -72,3 +86,9 @@ For production you'll need to fill out `.env` file and use
72
86
` docker-compose-prod.yml ` file:
73
87
74
88
$ docker-compose -f docker-compose-prod.yml up --build -d
89
+
90
+
91
+ Contributing
92
+ ------------
93
+
94
+ Help and feedback are welcome :)
0 commit comments