docs(README): add bundler to README
This commit is contained in:
parent
6cda35d900
commit
9dc5ca66ed
18
README.md
18
README.md
@ -51,6 +51,14 @@ To start the frontend asset bundler, run:
|
||||
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
|
||||
|
||||
To run commands inside the backend container, run the following:
|
||||
@ -68,3 +76,13 @@ To enter django's interactive shell, run:
|
||||
```bash
|
||||
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",
|
||||
"version": "0.0.1",
|
||||
"description": "Mobile Early Deterioration Warning System.",
|
||||
"main": "index.js",
|
||||
"main": "./app/static/dist/index.js",
|
||||
"author": "Julian Lobbes",
|
||||
"license": "AGPL-3.0",
|
||||
"source": "./assets/js/entry.js",
|
||||
@ -13,7 +13,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"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": {
|
||||
"autoprefixer": "^10.4.14",
|
||||
|
Loading…
x
Reference in New Issue
Block a user