merge experimental #1
18
README.md
18
README.md
@ -51,6 +51,14 @@ To start the frontend asset bundler, run:
|
|||||||
npm run start
|
npm run start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
It supports file watching and hot reloading of the browser window.
|
||||||
|
|
||||||
|
To clean the bundle files, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run clean
|
||||||
|
```
|
||||||
|
|
||||||
## Backend
|
## Backend
|
||||||
|
|
||||||
To run commands inside the backend container, run the following:
|
To run commands inside the backend container, run the following:
|
||||||
@ -68,3 +76,13 @@ To enter django's interactive shell, run:
|
|||||||
```bash
|
```bash
|
||||||
sudo docker exec -it medwings-django python manage.py shell
|
sudo docker exec -it medwings-django python manage.py shell
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Deployment
|
||||||
|
|
||||||
|
This section is incomplete.
|
||||||
|
|
||||||
|
1. Build the asset bundle:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "medwings",
|
"name": "medwings",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Mobile Early Deterioration Warning System.",
|
"description": "Mobile Early Deterioration Warning System.",
|
||||||
"main": "index.js",
|
"main": "./app/static/dist/index.js",
|
||||||
"author": "Julian Lobbes",
|
"author": "Julian Lobbes",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"source": "./assets/js/entry.js",
|
"source": "./assets/js/entry.js",
|
||||||
@ -13,7 +13,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "parcel build --dist-dir app/static/dist assets/main.js",
|
"build": "parcel build --dist-dir app/static/dist assets/main.js",
|
||||||
"start": "parcel --dist-dir app/static/dist --hmr-port 34471 assets/main.js"
|
"start": "parcel --dist-dir app/static/dist --hmr-port 34471 assets/main.js",
|
||||||
|
"clean": "rm -rvf app/static/dist/*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user