You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-7
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# vue-django-webpack-boilerplate
2
2
3
-
> [@NdagiStanley](https://github.com/NdagiStanley) has mirrored the [fork](https://github.com/NdagiStanley/vue-django-fork) to have this repo here. This starterpack has proved useful to many and I thank you for the emails I have received from all of you. The reasoning behind this mirror is that this is an effort to **support the users** more by develop further on this project. From here on, I am calling on all potential collaborators by making it easier to make [PRs](https://github.com/NdagiStanley/vue-django/pulls) and adding utility of [Issues](https://github.com/NdagiStanley/vue-django/issues) in this 'new' repo (Of course with the same name :) ). Lastly, just so you know, I'll be keeping up with developments in the [`original`](https://github.com/vuejs-templates/webpack).
3
+
> [@NdagiStanley](https://github.com/NdagiStanley) has mirrored the [fork](https://github.com/NdagiStanley/vue-django-fork) to have this repo here. This starterpack has proved useful to many and I thank you for the emails I have received from all of you. The reasoning behind this mirror is that this is an effort to **support the users** more by developing further on this project. From here on, I am calling on all potential collaborators by making it easier to make [PRs](https://github.com/NdagiStanley/vue-django/pulls) and adding utility of [Issues](https://github.com/NdagiStanley/vue-django/issues) in this 'new' repo (Of course with the same name :) ). Lastly, just so you know, I'll be keeping up with developments in the [`original`](https://github.com/vuejs-templates/webpack).
4
4
5
5
<palign="center">
6
6
<b>Listed in</b>
@@ -26,6 +26,7 @@ Common topics are discussed in the [docs](http://vuejs-templates.github.io/webpa
[https://vuedjango.herokuapp.com/](https://vuedjango.herokuapp.com/) is a deployed instance of this boilerplate.
31
32
@@ -38,6 +39,8 @@ This is a project template that includes `VueJS` and `Django` based on the [vue-
38
39
```bash
39
40
$ npm install -g vue-cli
40
41
```
42
+
43
+
### Set up
41
44
You might want to use ```sudo``` if you encounter permissions error
42
45
```bash
43
46
$ vue init NdagiStanley/vue-django my-project
@@ -47,18 +50,26 @@ $ npm install
47
50
48
51
Secondly, have *Python* installed and preferably create a virtual environment for the project.
49
52
50
-
To develop
51
-
53
+
### Develop
54
+
Run:
52
55
```bash
53
56
$ npm run dev
54
57
```
55
58
56
-
## Deploy
57
-
To deploy your django project, still within `my-project` directory, run:
59
+
The app runs on [localhost:8080](http://localhost:8080/)
60
+
61
+
Update the files as you wish and the hot-reload will take effect. Add `js` and `css` files within the `static` folder in the root directory. Link them to the index.html in that same level (the root directory).
58
62
59
-
`$ .deploy.sh`
63
+
### Deploy
64
+
Ensure you have run `npm install` prior to the following command.
65
+
66
+
Run:
67
+
```bash
68
+
$ .deploy.sh
69
+
```
70
+
(Run this command every time you make changes)
60
71
61
-
Then get to [localhost:8000](http://localhost:8000/). You should have a page exactly like the image below or as the deployed instance mentioned earlier: [https://vuedjango.herokuapp.com/](https://vuedjango.herokuapp.com/)
72
+
At [localhost:8000](http://localhost:8000/) you should have a page exactly like the image below or as the deployed instance mentioned earlier: [https://vuedjango.herokuapp.com/](https://vuedjango.herokuapp.com/)
Copy file name to clipboardExpand all lines: meta.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -125,5 +125,5 @@ module.exports = {
125
125
"test/e2e/**/*": "e2e",
126
126
"src/router/**/*": "router"
127
127
},
128
-
"completeMessage": "To get started:\n\n {{^inPlace}}cd {{destDirName}}\n {{/inPlace}}npm install\nnpm run dev\n\nTo build and serve in Django:\n\n ./deploy.sh\n\nDocumentation can be found at https://goo.gl/V4eN7h"
128
+
"completeMessage": "To get started:\n\n {{^inPlace}}cd {{destDirName}}\n {{/inPlace}}npm install\n\n To develop:\n\n npm run dev\n\nTo build and serve in Django:\n\n ./deploy.sh (Remember to do this in a python virtual environment)\n\nDocumentation can be found at https://goo.gl/V4eN7h"
0 commit comments