npm install
Build source code in run
folder then setup and compile assets files to public folder:
npm run init
npm run serve
** Note: Make sure you have assets setup and compile before executing by running Init the project command.
npm run build
** Note: Please remember to create .env
file, and make changes to values in it,
especially for the VUE_APP_BUILD_PATH
and VUE_APP_BUILD_COMPOSE
settings before making a build.
npm run lint
npm run @run
npm run @assets
Setup required asset files to public
folder:
npm run @setup
Compile asset files in src/assets/css/public
folder and copy compiled files to public
folder:
npm run @compile
You can compose Pug or Vue templates from HTML files by executing @compose-*
commands.
HTML files should be placed in src/assets/compose/html
directory.
Compose .pug
files from HTML files in src/assets/compose/html
directory.
npm run @compose-pug
Composed files will be stored in src/assets/compose/pug
directory.
Compose .vue
files from HTML files in src/assets/compose
directory.
npm run @compose-vue
Composed files will be stored in src/assets/compose/vue
directory.
Pug-composed files will also be stored in src/assets/compose/pug
directory.
** Note: Make sure you have a template file named .vue.template
in src/views/templates
directory.
Determine environment to run.
Available values:
production
: Run on production.local
: Run on development.
A secret key for application to encrypt everything.
Required to set before running the application.
Determine which folder to build source into.
Default value is dist
folder.
Determine which target the build should be composed.
The possible values are:
standalone
: The build will include configuration files/folders. Used when built files are hosted independently.<empty>
: The build will exclude configuration files/folders. Used when built files are hosted with other files.
Enable code for debugging.
Available values:
true
: Enable.false
: Disable.
Logs in application can be grouped by namespaces.
Only logs in namespaces set in value could be sent.
Namespaces are separated by the comma.
** Note: Debug must be enabled.
The unique name of the application.
Value is string. Should be valid with this regular expression: ^[a-z][a-z0-9_]*$
.
Display name of the application.
Value is string.
Value could be admin
or home
.
URI setting for admin
application.
VUE_APP_ADMIN_HOST
:- Value could be
sub
orself
. - If value is
sub
,VUE_APP_ADMIN_HOST_SUB_PATH
should be set. It would append to current host that runs theadmin
application. - If value is
self
,VUE_APP_ADMIN_URL
should be set. It would be used as URI of theadmin
application.
- Value could be
URI setting for home
application.
VUE_APP_HOME_HOST
:- Value could be
sub
orself
. - If value is
sub
,VUE_APP_HOME_HOST_SUB_PATH
should be set. It would append to current host that runs thehome
application. - If value is
self
,VUE_APP_HOME_URL
should be set. It would be used as URI of thehome
application.
- Value could be
Setting for service
application.
VUE_APP_SERVICE_HOST
:- Value could be
sub
orself
. - If value is
sub
,VUE_APP_SERVICE_HOST_SUB_PATH
should be set. It would append to current host that runs theservice
application. - If value is
self
,VUE_APP_SERVICE_URL
should be set. It would be used as URI of theservice
application.
- Value could be
To authenticate via Laravel Passport using Password Grant Tokens,
the application should know the client id (set by value of VUE_APP_SERVICE_CLIENT_ID
)
and secret (set by value of VUE_APP_SERVICE_CLIENT_SECRET
) generated by Laravel Passport.
Setting for some headers.
VUE_APP_SERVICE_HEADER_SCREEN_NAME
:- Name of screen header for sending current screen information to service.
- Default value should be
X-Screen
.
VUE_APP_SERVICE_HEADER_SETTINGS_NAME
:- Name of settings header for sending localization settings to service.
- Default value should be
X-Settings
.
VUE_APP_SERVICE_HEADER_DEVICE_NAME
:- Name of device header for sending device identification to service.
- Default value should be
X-Device
.
VUE_APP_SERVICE_HEADER_TOKEN_AUTHORIZATION_NAME
:- Name of authorization header for sending access token to service.
- If
VUE_APP_SERVICE_HEADER_BASIC_AUTHORIZATION
is empty, the value could be anything. - If
VUE_APP_SERVICE_HEADER_BASIC_AUTHORIZATION
is set , the value should beX-Authorization
.
VUE_APP_SERVICE_HEADER_BASIC_AUTHORIZATION
:- Set when basic authentication is set on the server.
- Value should be
{username}:{password}
.
VUE_APP_SERVICE_HEADER_BASIC_AUTHORIZATION_EXCEPTION
:- For some reasons, application can be accessed via many domains. Some of them can pass through basic authorization, some cannot.
- Allowed domains should be set here, and they should be separated by the comma.
Settings for cookies.
VUE_APP_COOKIE_DEFAULT_NAME
:- Name of the default cookie of the application. This cookie is used for storing authentication, i.e access token.
- Default value is taken from
APP_ID
.
VUE_APP_COOKIE_DEVICE_NAME
:- Name of the device cookie. On each browser accessing the application, a device secret code will be generated and stored in this cookie for identification.
- Default value is taken from
APP_ID
appended by_device
.
VUE_APP_COOKIE_SETTINGS_NAME
:- Name of the cookie which contains localization settings.
- Default value is taken from
APP_ID
appended by_settings
.
VUE_APP_COOKIE_DOMAIN
:- The domain of all cookies.
- Leave empty for use the current domain.
VUE_APP_COOKIE_INCLUDE_SUBDOMAINS
:- Set value to
true
to make the domain set for all cookies should be available for subdomains.
- Set value to
VUE_APP_LOCALE
:- Default locale of the application in ISO 639-1 format.
- Value should be
ja
when deploying for Japan.
VUE_APP_TIMEZONE
:- Default timezone of the application. See supported timezones
- Value should be
Asia/Tokyo
when deploying for Japan.
VUE_APP_COUNTRY
:- Default country of the application in ISO 3166-1 alpha-2 format.
- Value should be
JP
when deploying for Japan.
VUE_APP_CURRENCY
:- Default currency of the application in ISO 4217 format.
- Value should be
JPY
when deploying for Japan.
VUE_APP_NUMBER_FORMAT
:- Default number format of application.
- Value could be:
point_comma
:1000000
will be formatted as1,000,000.00
. It is the default value yet.point_space
:1000000
will be formatted as1 000 000.00
.comma_point
:1000000
will be formatted as1.000.000,00
.comma_space
:1000000
will be formatted as1 000 000,00
.
For uploading a large file by splitting it into chunks, the size of each chunk is set as the value in bytes
here.
If value is empty, default size of 1MB
is applied.