This is a template for creating applications using Vite and HeroUI (v2).
To clone the project, run the following command:
git clone https://github.com/frontio-ai/vite-template.gitYou can use one of them npm, yarn, pnpm, bun, Example using npm:
npm installCreate a .env file in the root directory of the project with the following variables:
VITE_API_URL=http://localhost:3000/api
Note: All environment variables must be prefixed with VITE_ to be accessible in the frontend code.
npm run devIf you are using pnpm, you need to add the following code to your .npmrc file:
public-hoist-pattern[]=*@heroui/*After modifying the .npmrc file, you need to run pnpm install again to ensure that the dependencies are installed correctly.
Licensed under the MIT license.