Look at the nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoistStart the development server on http://localhost:3000
Create file .env in project's root directory.
.env example:
NUXT_APP_BUILD_ASSETS_DIR='/realm00000/v/_nuxt/'
KEYCLOAK_URL='https://stage-auth.finmars.com'
KEYCLOAK_REALM='finmars'
KEYCLOAK_CLIENT_ID='finmars'
APP_HOST='http://localhost:3000/v'
API_HOST='https://stage.finmars.com'
AUTH_HOST='https://stage.finmars.com/authorizer'
OLD_APP_URL='http://0.0.0.0:8080/#!/'
NUXT_HOST='localhost'For NUXT_APP_BUILD_ASSETS_DIR replace realm00000 with the one that will be used
Run command:
npm run devFor locally deployed backend run command:
npm run dev-localBuild the application for production:
npm run buildLocally preview production build:
npm run previewCheckout the deployment documentation for more information.
Create .env
.env example
KEYCLOAK_URL=https://dev-auth.finmars.com
KEYCLOAK_REALM=finmars
KEYCLOAK_CLIENT_ID=finmars
NUXT_APP_BASE_URL=/realm00000/v/
APP_HOST=http://0.0.0.0:3000/realm00000/v/
AUTH_HOST=http://0.0.0.0:8083/authorizer
API_HOST=http://0.0.0.0:8000