Skip to content

Som-Energia/webforms-ui

Repository files navigation

WebForms UI

CI cypress webforms-ui

Som Energia WebForms UI

Installation 🔧

  1. Install NPM packages
  npm install

Run the app 🚀

Run the app on dev mode

  npm start

Testing ⚙️

Launches the Jest test runner in the interactive watch mode.

npm test

Launches the Cypress test runner. Cypress requires you to run npm start in parallel.

npm run cypress

Launches the Cypress smoke tests:

npm run cypress:smoke

To get holderChangePersonaldata.js:

cd cypress/fixtures/
ln -s ../../../testdata/b2bs/holderChangePersonaldata.json .

To get .env.development:

ln -s $myit-docs_dir/it-docs/conf/webforms-ui/.env.development

We should have testdata repo!

Deployment

To deploy we have to use deploy.sh

scripts/deploy.sh [env]

Testing

If you want to deploy to the web:

scripts/deploy.sh pre

This command uses deploy-pre.conf. It is now defined with the test web configuration.

If you want to deploy to the OV:

scripts/deploy.sh ovtest [vassal number]

This command uses deploy-ovtest.conf. It is now defined with the test OV configuration.

Production

If you want to deploy to the web:

scripts/deploy.sh production

This command uses deploy-production.conf. It is now defined with the production web configuration.

If you want to deploy to the OV:

scripts/deploy.sh ovprod

This command uses deploy-ovprod.conf. It is now defined with the production OV configuration.

Local

For the first time you should create the folder builds at the root of the projects.

If you want to deploy local:

scripts/deploy-local.sh 

This command uses deploy-ovlocal.conf. It is now defined with the local OV configuration.

Thing to keep in mind:

  • Follow the setup to create the necessary directories
  • This script must be run from its directory

About

Som Energia WebForms UI React reimplementation

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages