optscale
optscale copied to clipboard
How to start services in local like NGUI with VITE_proxy in .env?
Hello @shadabmalik096rs
Here's a small guide to help you get started
- Navigate to NGUI Directory:
cd ngui/ui
-
Configure Environment Variables: Ensure that you set up the necessary environment variables. For local development, it should be sufficient to specify the VITE_PROXY variable. For detailed guidance on configuring the VITE_PROXY variable, please refer to this link.
-
Install Dependencies: Make sure you have pnpm and node installed, we are currently using [email protected] and [email protected]
pnpm i --frozen-lockfile
- Start NGUI Project:
pnpm start
Yes ngui for front end But i want make changes in rest_api classes and test them via postman in my local machine?
You may build the custom version of the rest_api.
- add your code to optscale repo
- run
. build.sh rest_api
fromoptscale
folder to build the newrest_api:local
image on your local machine - delete current
restapi
pod viakubectl delete pod
The new restapi pod will include your changes.