git clone [email protected]:lagomus/lec-storefront.git # Or equivalent with HTTPS URL
yarn install
Simple
yarn dev
Execute in three different terminals:
yarn dev:api-client
yarn dev:composables
yarn dev:theme
yarn build
yarn start
Create the configuration file in the theme directory copying from the provided sample.
cd packages/theme/
cp .env.sample .env
In the new .env file, set the API endpoint and keycloak params.
NUXT_ENV_API_BASE_PATH=https://the-core-api-base-url/
NUXT_ENV_KEYCLOAK_REALM=
NUXT_ENV_KEYCLOAK_URL=
NUXT_ENV_KEYCLOAK_CLIENT_ID=
yarn install
or
lerna bootstrap
Note that this requires the command lerna to be installed globally.
Dosc: https://lerna.js.org/
lerna add NPM_PACKAGE [PROJECT]
If PROJECT is not specified, the package is installed in all projects.
Example:
lerna add axios packages/api-client