Requiements: node version 20 or above
- Clone the repository and install dependencies using below command
npm install
-
Different env files for different environments like dev, uat, staging and production has been configured
-
To run dev environment
npm run dev
- To run uat environment
npm run uat
- To run staging environment
npm run staging
- To run prod environment
npm run prod
- If you want to add more environemnts then just add a .env.name and add a script for running env in local and for build in package.json
"your-env-name":"vite --open --mode your-env-name",
"build-your-env-name":"vite build --mode your-env-name",
-
Different env files for different environments like dev, uat, staging and production has been configured
-
To build dev environment
npm run build-dev
- To build uat environment
npm run build-uat
- To build staging environment
npm run build-staging
- To build prod environment
npm run build-prod
To serve from generated build run following command
npm run preview
- env variable should be prefixed with APP_
example
APP_BASE_URL =https://api.censanext.com
- React 18 documentation
- React Router 6 documentation
- Redux Toolkit for state management documentation
- Censa Design System as ui library documentation
- Vite for bundler documentation