An expense tracking application built with SvelteKit and Appwrite.
git clone <repository-url>
cd expense-app
pnpm install
Set up environment variables:
.env.example
to .env
:cp .env.example .env
.env
file with your Appwrite configuration:PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
PUBLIC_APPWRITE_PROJECT_ID=your-project-id
PUBLIC_APPWRITE_DATABASE_ID=expense-tracker
PUBLIC_APPWRITE_COLLECTION_ID=expenses
Create an Appwrite project and configure the following:
a. Create a new project in Appwrite Console
b. Create a new database with the ID specified in PUBLIC_APPWRITE_DATABASE_ID
c. Create a new collection with the ID specified in PUBLIC_APPWRITE_COLLECTION_ID
and add these attributes:
userId
(String, required)amount
(Float, required)category
(Enum, required)description
(String, required)date
(DateTime, required)createdAt
(DateTime, required)updatedAt
(DateTime, required)d. Configure collection permissions:
["role:all"]
(allows all authenticated users to create documents)Start the development server:
pnpm dev
The application will be available at http://localhost:5173
To create a production build:
pnpm build
MIT