|
|
4 éve | |
|---|---|---|
| .github | 4 éve | |
| certs | 4 éve | |
| docs | 4 éve | |
| public | 4 éve | |
| src | 4 éve | |
| tests | 4 éve | |
| .env.example | 4 éve | |
| .env.nibs-dev | 4 éve | |
| .env.test | 4 éve | |
| .envrc | 4 éve | |
| .gitignore | 4 éve | |
| .prettierrc.js | 4 éve | |
| .sentryclirc | 4 éve | |
| Dockerfile | 4 éve | |
| README.md | 4 éve | |
| babel.config.js | 4 éve | |
| changelog.md | 4 éve | |
| docker-compose.yml | 4 éve | |
| docker-entrypoint.sh | 4 éve | |
| jest.config.js | 4 éve | |
| package-lock.json | 4 éve | |
| package.json | 4 éve | |
| ts-shim.d.ts | 4 éve | |
| tsconfig.json | 4 éve | |
| vue.config.js | 4 éve | |
| vue.config.pages.js | 4 éve | |
| yarn.lock | 4 éve |
npm install -g @vue/clivue --version
git clone https://github.com/ElkenGit/new-ibs-member-frontend.gitgit checkout master.env.example file and paste the file as .env. and update the enviroment variablespackage-json.lock file or yarn.lock filenpm installnpm run serveVue application local hosting setting
VUE_APP_PORT=8080
VUE_APP_HOST=localhost
VUE_APP_HTTPS=true
Change application backend URL based on needs:
Development [DEV] -> https://nibsdev-be.elken.com/api
VUE_APP_BACKEND_URL=https://nibsdev-be.elken.com/api
VUE_APP_WEB_URL=https://localhost
To mock all APIs use the following environment variable
VUE_APP_BACKEND_MOCK=true
If you want a specific API mocked then you can include it in /mock-api-url.js like the following
export const API_URL = process.env.VUE_APP_BACKEND_URL
export default {
[API_URL + '/member/stats']: true
}
Note: keep in mind that /mock-api-url.js is in .gitignore and will not be comitted to GIT
This setting is for Elken Live Chat and Feedback plugin
Change the variable to true to enable the plugins
VUE_APP_INIT_FC_WIDGET => Live Chat Plugin
VUE_APP_INIT_FRESH_WIDGET=false
VUE_APP_INIT_FC_WIDGET=false
This setting is for Sentry service
Change the variables to true to activate the Sentry service
VUE_APP_LOG_SENTRY=false
VUE_APP_SENTRY_DSN=false
VUE_APP_SENTRY_AUTH_TOKEN=false
VUE_APP_SENTRY_URL=false
VUE_APP_SENTRY_PROJECT=false
This setting is uses to avoid multiple enrolment session
Change the variable to false to disable multiple enrollment session validation
VUE_APP_ENROLMENT_TABS_CHECKER=true
Change the variable to false to disable websocket service
Change application socket URL based on needs:
Development [DEV] -> https://nibsdev-be.elken.com
VUE_APP_WEBSOCKET=true
VUE_APP_ECHO_URL=https://nibsdev-be.elken.com
This setting is uses to trigger google analytics service in e-shop
false to disable Google analytics serviceReplace VUE_APP_GA_MEASUREMENT_ID with the ID of the Google Analytics property to which you want to send data.
VUE_APP_GOOGLE_ANALYTICS=true
VUE_APP_GA_MEASUREMENT_ID=XXXXXXXXXXXXXXX
Jest sometimes creates a latency on test promise resolving, the following env will allow to change the latency, if not provided the timeout is set to 10000
VUE_APP_JEST_PROMISE_TIMEOUT=10000
This setting is uses to enable CV wallet feature in E-Shop
Change the variables to true to activate CV wallet feature
VUE_APP_CV_WALLET=false
Git status:
| Status | Branch Name | Server Name |
|---|---|---|
| STAGING | master | UAT |
| LIVE | - | LIVE |
| DEV | V2-dev | DEV |
STAGINGDEV for testingPush code to STAGING
Pull code from LIVE
Optional: If changes is big/complicated, push to DEV for testing
Push code to LIVE
We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the change log.
Each commit message consists of a header. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>?optional): <subject>
The header is mandatory and the scope of the header is optional.
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.
feat: GST-1234: Added new xyz feature
If the commit reverts a previous commit, it should begin with revert:, followed by the header of the reverted commit. In the body it should say: This reverts commit <hash>., where the hash is the SHA of the commit being reverted.
Must be one of the following:
feat: A new featurefix: A bug fixrefactor: A code change that neither fixes a bug nor adds a featurechore: Other changes that don't modify src or test filesbuild: Changes that affect the build system or external dependencies (example scopes: poison, phoenix)docs: Documentation only changesperf: A code change that improves performancestyle: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)test: Adding missing tests or correcting existing testsci: Changes to our CI configuration files and scripts (example scopes: Travis, Coveralls)revert: Reverts a previous commitThe scope should be the name of the section affected (as perceived by person reading changelog generated from commit messages).
Bind data-qa property to every necessary UI component to ease automation testing.
Name attributes name as per naming conventions(kebab-case) below:
[moduleName]-[screenName]-[UiComponentName]-[UiComponentType]
eg: login-login-form-login-btn
Example: <b-button @click="submit"data-qa="login-loginForm-login-btn">Login</button>
[UiComponentName]-[UiComponentType]
eg: product-quantity-field
Example: <b-input v-model="quantity"data-qa="productQuantity-field"/>
***Try to make it as unique as possible for easy identification
Win Search for Manage Computer CertificateTrusted Root Certificate Authorities -> Installcerts\server.crtcertutil -setreg chain\ChainCacheResyncFiletime @nowchrome://restart in urlnpm install -g @vue/clivue --versionnode_moduels directory, delete package-json.lock or yarn.locknpm installnpm serve