- Node.js ^v18
- Yarn
yarn install
We use Storybook to develop ui components in isolation from application logic, check out this link
Start Storybook
yarn storybook
Storybook does not support Node.js v17 or higher yet, the workaround is to execute in your environment the following
LINUX E MAC
export NODE_OPTIONS=--openssl-legacy-provider
WINDOWS
set NODE_OPTIONS=--openssl-legacy-provider
We use react-scripts, more on link
Follow this instructions for (mac)[https://stackoverflow.com/questions/62010077/set-up-https-on-localhost-for-macos-mac-os-catalina-10-15-2/73517777#73517777]
Create an .env file like the model bellow replacing the exact path to your cert and key files generated on the previous steps.
HTTPS=true
SSL_CRT_FILE=/Users/danielborlinodeoliveira/localhost/cert.pem
SSL_KEY_FILE=/Users/danielborlinodeoliveira/localhost/key.pem
Star APP using
yarn start
Run the build command to get it all minifyied and optimised
yarn build