A React app built with Vite and Appwrite.
-
Install dependencies:
npm install
-
Copy
.env.sampleto.envand set your Appwrite endpoint, project ID, database ID, collection ID, and bucket ID.In PowerShell:
Copy-Item .env.sample .env -
Start the development server:
npm run dev
npm run devstarts the Vite development server.npm run buildcreates a production build.npm run previewpreviews the production build.npm run lintruns ESLint.
.env is ignored by Git. Do not put Appwrite API keys or other server-side
secrets in VITE_ variables; Vite exposes those values to client-side code.