Note that the application is using cookie with http-only and secure attributes for authenticating the user. So to run the application in localhost, webpack devServer needs to be served with https:
First, install mkcert, then create a new local CA by executing:
mkcert -install
Create cert:
mkcert localhost 127.0.0.1
After creating CA cert for local development, create .certs
directory in the root directory of the project and copy all created files to that folder
Check vue.config.js
file, devServer
section for more configuration
Note that MaxScale also needs to be set up to use TLS/SSL. Instructions
CORS is bypassed by using proxy in webpack devServer. Check vue.config.js
file, devServer
section for more configuration
Add .env.local file that contains buildPath=dataDir
dataDir
indicates your maxscale's Data directory absolute path
After compiling and minifying for production, the GUI can be accessed via
https://admin_host
:admin_port
admin_host
: The network interface where the REST API listens on. The default value is the IPv4 address 127.0.0.1 which only listens for local connections.
admin_port
:The port where the REST API listens on. The default value is port 8989
The default is: https://127.0.0.1:8989
If maxscale is running, you need to shut it down and then start it again
npm install
npm run serve
Check Config build path before building
npm run build
npm run lint
npm run test:unit
npm run test:e2e
Create a json file in src/locales
. For example: es.json
Copy everything in src/locales/en.json
file and paste to es.json
then .... translate it
Change the value of VUE_APP_I18N_LOCALE in .env
file to the desire locale
Using default configuration See More