-
Clone project from bitBucket
git clone HTTP
- (remember to use GIT FLOW, I do have other tutorial about it here: http://simp.ly/p/wC5wm5 or https://gist.github.com/VitorTheGreat/eae501b6d908ef56c588417d6ad32f6a)
-
Install Vtex
npm i -g vtex yarn add global vtex
2.1. Update vtex when asked (keep using the PM you started the project
npm i -g vtex yarn add global vtex
2.2 Start a project with vtex (only once)
vtex init
-
Log in to the account
vtex login -a <STORE_ACCOUNT> #(e.g. vtex login -a rapsodiaar)
- obs: It will open a browser window to log into vtex
-
Install packages in order that the store works properly
vtex install vtex.store-sitemap vtex install vtex.store vtex install vtex.admin vtex install vtex.admin-pages
-
Change to/Create your workspace
vtex use <WORKSPACE> #(e.g. vtex use devvitor)
- obs: When creating vtex will ask you.
5.1 * Reseting your workspace
vtex workspace reset <WORKSPACE>
-
Check if it is everything ok and you are logged in
vtex whoam i
-
Link your branch to your workspace to work
vtex link --verbose
-obs: Look at the terminal to see if it is successfully linked
-
Access your workspace in the browser
-
Be happy and start building something amazing!
BONUS: In development, pass the parameter ?__inspect=true to the URL so you can inspect the blocks
Found any errors? be free to correct and warn me, please: vitor.services@gmail.com