- Install yarn if you don't have it already:
npm install --global yarn - Install the dependencies:
yarn - Start the web app:
yarn start
- If you may any component, try to use the base template located in `src/components/templates/base.
- The above has 3 files -
index.tsx,BaseTemplate.tsxandBaseTemplate.module.css. - You may copy the files wherever you require and rename the BaseTemplate to something else, but make sure to rename the file names as well.
- Any local component (which shall never be probably used outside the file) should reside inside the same directory as main component but inside a folder named
components.
- Create a new folder inside
src/pageswith the name of the page. - Copy the base template files from
src/components/templates/baseto the new folder. - Rename the files to the name of the page.
- Rename the
BaseTemplateclass to the name of the page.
- Update the 'src/menu-items' file with the new item.
yarn build
make build_image
make push_image
terraform init
terraform apply