Update readme

This commit is contained in:
silverpill 2022-04-30 11:50:43 +00:00
parent 5c63894627
commit 052e46c1d7

View file

@ -16,19 +16,34 @@ npm install
npx allow-scripts npx allow-scripts
``` ```
### Compile and minify for production
Set backend URL:
```
echo "VUE_APP_BACKEND_URL=https://mydomain.tld" > .env.local
```
Or un-set it if both frontend and backend will run on the same URL:
```
echo "VUE_APP_BACKEND_URL=" > .env.local
```
Compile:
```
npm run build
```
## Development
### Compiles and hot-reloads for development ### Compiles and hot-reloads for development
``` ```
npm start npm start
``` ```
### Compile and minify for production
```
echo "VUE_APP_BACKEND_URL=https://mydomain.tld" > .env.local
npm run build
```
### Run your unit tests ### Run your unit tests
``` ```