yarn
Running the application
nvm use
yarn run build:dev
yarn run start
nvm use
yarn run deploy
heroku login
git push heroku master
yarn test
yarn add <package>
Need node_modules since we are mounting the directory
cd ~/Desktop/dev/hector && yarn
Build image
docker build -t hector .
Pushing an image to docker hub
[https://docs.docker.com/engine/getstarted/step_six/]
docker tag <imageId> harsh376/<imageName>:<tag>
docker login
docker push harsh376/<imageName>
Run container
docker run -p 49160:3000 -d harsh376/hector:tag
- Add locale in
index.js
usingaddLocaleData
TODO
: Move this into separate file
- Add translations for the supported locales in
translations/translations.json
- The build step,
npm run start
, parses the components and extracts the text tagged for translation intoextracted-messages/
TODO
: Combine the extracted messages -->translations/translations.json
- The build step,
- More info: [https://github.com/yahoo/react-intl]
See the LICENSE file for license rights and limitations (MIT).