-
Install nvm
-
Run
nvm installin the root directory of the repo, this will install the nodejs version needed for the front end setup. The version is set in.nvmrc -
Run
npm installthis will install all dependencies -
Create
.env.local fileand copy.envfile content to.env.localfile and set the flags values as mentioned belowSKIP_PREFLIGHT_CHECK=true PORT=3004 # ORY_KRATOS_URL=http://kratos.canary.lab.flanksource.com/ # NEXT_PUBLIC_APP_DEPLOYMENT=CANARY_CHECKER NEXT_PUBLIC_WITHOUT_SESSION=false BACKEND_URL=https://incident-commander.demo.aws.flanksource.com ENV=localhost -
Run
npm run devto launch the front end application (note: api calls will be proxied to dev environment here). -
If you don't have any account to login please create an account by going to the page http://localhost:3000/registration.
-
If you have account login using that account by going to the page http://localhost:3000/login.
npm run storybookto start a storybook server to test components without the need for a backendnpm run startto start next.js in watch modenpm run test:cito run testsnpm run buildto test production build