This template provides a minimal setup to get React working in Vite with Appwrite, TypeScript, HMR, and some ESLint rules.
Follow these steps to initialize and run the project:
Make sure you have the following installed:
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install the dependencies:
npm install
-
Create an account on Appwrite.
-
Create a new project in the Appwrite console.
-
Note the Project ID from the Appwrite console.
-
Create a
.envfile in the root of your project and add the following line, replacingYOUR_PROJECT_IDwith your actual Project ID:VITE_APPWRITE_PROJECT_ID=YOUR_PROJECT_ID
To start the development server, run:
npm run devThis will start the Vite development server and you can view the application in your browser at http://localhost:3000.
To build the project for production, run:
npm run buildThe production-ready files will be generated in the dist directory.
To preview the production build, run:
npm run previewThis will start a local server to serve the production build.
This project is licensed under the MIT License.