vijaysaiy / gcs-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DMS Distributor Project

Using this Project

Requiements: node version 20 or above

  • Clone the repository and install dependencies using below command
npm install

How to run different environments locally

  • 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",

How to build different environments

  • 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 variables

  • env variable should be prefixed with APP_

example

APP_BASE_URL =https://api.censanext.com

Tech Stack

About


Languages

Language:JavaScript 99.7%Language:SCSS 0.2%Language:CSS 0.1%Language:HTML 0.0%