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
+24-11
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,36 @@
2
2
3
3
> A Vue.js and Django example
4
4
5
-
## Build Setup
5
+
This repo goes along with the first part series of a blogpost I wrote some time ago on how to effectively [setup a project that's easy to develop and deploy using Django, Vue and webpack](https://ariera.github.io/2017/09/26/django-webpack-vue-js-setting-up-a-new-project-that-s-easy-to-develop-and-deploy-part-1.html).
6
6
7
-
```bash
8
-
# install dependencies
9
-
npm install
7
+
## Installation
8
+
9
+
```bash
10
+
yarn install
11
+
python3 -m venv .venv
12
+
source .venv/bin/activate
13
+
pip install -r requirements.txt
14
+
```
10
15
11
-
# serve with hot reload at localhost:8080
16
+
## Development
17
+
18
+
* On one terminal run your webpack dev server
19
+
20
+
```bash
12
21
npm run dev
22
+
```
13
23
14
-
# build for production with minification
15
-
npm run build
24
+
* On another terminal launch the Django application
16
25
17
-
# build for production and view the bundle analyzer report
18
-
npm run build --report
26
+
```bash
27
+
python manage.py runserver
28
+
```
29
+
30
+
And point your browser to [http://localhost:8000](), but test that you can also access the pure Django world, for example by going to the admin panel [http://localhost:8000/admin]()
31
+
32
+
## Tests
19
33
34
+
```bash
20
35
# run unit tests
21
36
npm run unit
22
37
@@ -26,5 +41,3 @@ npm run e2e
26
41
# run all tests
27
42
npm test
28
43
```
29
-
30
-
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
0 commit comments