Chat bot that you can ask everything about program Yayasan Amaliah Astra or Astra Gema Islami
Use pnpm to improve productivity and replace npm, so make sure pnpm is installed:
npm i -g pnpm
To run the app locally, make sure the project's local dependencies are installed:
pnpm install
Create the .env
file from .env.example
. This is the one for local
development, not production
cp -i .env.example .env
Configure the required environment variables if on local, otherwise in the project settings on other environments.
Required:
VITE_BASE_URL
: For example,https://chatapi.id
Optional:
VITE_LOGIN_FLAG
: Set tofalse
if you want to hide login page
Finally, develop the app while running the development server:
pnpm dev
Open http://localhost:5173 and it's ready!
Check if the build is fine. This als be used to build the app for production.
pnpm build
After that you can run the build result:
pnpm preview
Open http://localhost:4173 and it's ready!
or if you have docker you can instantly use this command:
docker compose up -d
Grab a coffee, it will automatically build and run on http://localhost:5002