- 20.11.0
- Set environment variables
cp example.env .env.local
- Set up port forwards to back end services
kubectl port-forward services/ec-seller-commissions-service 9000:3000 -n marketplace
- Create local .npmrc file
Replace the content "<_authToken>" with your GitLab Personal Access Token. Do not upload that information to the repository.
- Install dependencies first you need to connect to the vpn
npm i
- Run dev server
npm run dev
- Set auth cookies on your browser
document.cookie="X-TOKEN-CORS=<your-cookie>"
- Checkout
develop
git checkout develop
git pull origin develop
- Increase version number
npm version <mayor|minor|patch>
- Create dev tag
npm run tag:dev
This will trigger ci and auto deploy to dev env.
- Create prod tag
npm run tag:prd
kubectl apply -f deploy.prod.yaml --context <your-name>-production