Brief project description
- Install Node.js
- Recommended method is by using NVM
- Recommended Node.js version is the active LTS
- Update
npm
to the latest version by runningnpm i -g npm@latest
- While staying connected to VPN, run
npm install
to install the project dependencies - For the e2e tests install locally selenium, chromedriver and geckodriver by running
npm run install-selenium
- Edit your
/etc/hosts
file by adding virtual hosts required for the app running:
These are just examples, please indicate the real list of domains that is used in project
127.0.0.1 dev.mercadolibre.com.ar dev.mercadolibre.com.mx dev.mercadolibre.com.co
127.0.0.1 dev.mercadopago.com.ar
127.0.0.1 dev.mercadolivre.com.br
# In case you run the project by `fury run` you should add also these ones
192.168.99.100 dev.mercadolibre.com.ar dev.mercadolibre.com.mx dev.mercadolibre.com.co
192.168.99.100 dev.mercadopago.com.ar
192.168.99.100 dev.mercadolivre.com.br
- You may find convenient editing your
.bash_profile
to auto pick the Node version of each project.
npm run dev
Note: Running this command you will be using React Fast Refresh and Hot Reload Server, please follow this documentation for more information and recommendations of usage.
npm run i18n:download
Note: To proceed with this step the project should be properly configured first. Please see the
i18n
configuration instructions for more info.
Run from this application for a single time the command:
./node_modules/.bin/install-devcert-ca
Please note that
sudo
password is required for this operation.
Note: if your app should run over HTTP please remove NODE_HTTPS=true
form the npm scripts.
"dev": "NODE_ENV=development node ./index.js"
https://dev.mercadolibre.com.ar:8443/
npm run build
Alternatively you may use the watcher for automatic assets rebuilding: npm run watch
npm run debug
© 2021 Mercado Libre