# Project setup (install all dependencies)
npm install
Rename .env.example
to .env
from the app's root path. Open .env
and fill it.
You can specify env variables by placing the following files in your project root:
.env # loaded in all cases
.env.local # loaded in all cases, ignored by git
.env.[mode] # only loaded in specified mode
# Compiles and hot-reloads for development
npm run serve
# Compiles and minifies for production
npm run build
Copy the dist
folder from the app's root path to your webspace
if you need a different environment like staging
Create .env.stage
file and enter the following lines for example:
NODE_ENV=production
VUE_APP_ENV_NAME=stage
VUE_APP_PAGE_TITLE=treeo-admin (stage)
VUE_APP_BASE_URL= # should be filled
VUE_APP_API_URL= # should be filled
npm run build --mode stage
https://github.com/b-lack/treeo_app