Follow the steps below for setup.
Please use Node.js version 12.x series and NPM version 8.5.5.
npm install
To start the development server, please create .env.local
directly under the project root directory in advance.
To start the built-in server in local environment mode, please create .env.local
directly under the project root directory in advance.
npm run serve
The following commands can be used to build for staging environments.
If you want to build for a staging environment, please create .env.staging
directly under the project root directory beforehand.
npm run build:stg
The following commands can be used to build for production environments.
If you want to build for a staging environment, please create .env.production
directly under the project root directory beforehand.
npm run build:prd
Create a .env
file for each environment by referring to the .env.sample
that exists directly under the project root directory.
Here are some references.
# Environment Setting
NODE_ENV=development
# API Settings
VUE_APP_API_BASE_URL=http://localhost:8082
# Flag Settings
VUE_APP_CONTRACT_UPDATE=false
# Environment Setting
NODE_ENV=development
# API Settings
VUE_APP_API_BASE_URL=https://stg.slash.fi
# Flag Settings
VUE_APP_CONTRACT_UPDATE=false
# Environment Setting
NODE_ENV=production
# API Settings
VUE_APP_API_BASE_URL=https://slash.fi
# Flag Settings
VUE_APP_CONTRACT_UPDATE=false