{"id":28205855,"url":"https://github.com/wardbox/whatispent","last_synced_at":"2025-06-11T14:32:54.761Z","repository":{"id":287511427,"uuid":"964972116","full_name":"wardbox/whatispent","owner":"wardbox","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T16:38:29.000Z","size":738,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T10:08:36.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wardbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-12T06:08:45.000Z","updated_at":"2025-04-22T20:21:29.000Z","dependencies_parsed_at":"2025-04-12T07:25:42.893Z","dependency_job_id":"45d14262-c196-4ffd-9420-628a4badecd5","html_url":"https://github.com/wardbox/whatispent","commit_stats":null,"previous_names":["wardbox/whatispent"],"tags_count":0,"template":false,"template_full_name":"wardbox/roke","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wardbox%2Fwhatispent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wardbox%2Fwhatispent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wardbox%2Fwhatispent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wardbox%2Fwhatispent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wardbox","download_url":"https://codeload.github.com/wardbox/whatispent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wardbox%2Fwhatispent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259280657,"owners_count":22833432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-17T10:08:36.573Z","updated_at":"2025-06-11T14:32:54.705Z","avatar_url":"https://github.com/wardbox.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What I Spent\n\nA personal finance application designed to provide users with a clear and simple\noverview of their spending habits.\n\n## What's this about?\n\nWhat I Spent helps you understand where your money goes. By securely connecting\nto your bank accounts via Plaid, it automatically imports transactions and\nprovides insights into your spending on a daily, weekly, and monthly basis.\nAccess requires a monthly subscription managed via Stripe.\n\nThis starter aims to provide a solid foundation with:\n\n- Secure bank integration using Plaid.\n- Subscription management via Stripe.\n- Preconfigured shadcn/ui components.\n- Best practices for Wasp development baked in.\n\n## Features\n\n- **Dashboard Summary**: See spending for Today, This Week, and This Month at a\n  glance.\n- **Monthly Comparison Chart**: Visualize spending trends over the past months.\n- **Spending Categories**: Understand spending distribution across categories\n  like Food, Shopping, etc.\n- **Detailed Transaction List**: View all imported transactions with details.\n- **Secure Bank Connection**: Easily link bank accounts using Plaid Link.\n- **Subscription Management**: Handle subscriptions securely via Stripe Checkout\n  and Customer Portal.\n\n## Getting Started\n\n1.  **Install Wasp**: If you haven't already, install Wasp:\n\n    ```bash\n    curl -sSL https://get.wasp-lang.dev/installer.sh | sh\n    ```\n\n    Follow the instructions provided by the installer.\n\n2.  **Clone or Use Template**: Click \"Use this template\" or clone the\n    repository:\n\n    ```bash\n    git clone \u003crepository-url\u003e\n    cd \u003crepository-directory\u003e\n    ```\n\n3.  **Install Dependencies**: Run `wasp start db` `wasp db migrate-dev`\n\n4.  **Environment Variables (`.env.server`)**:\n\n    - Create a `.env.server` file in the project root.\n    - **Plaid**: Add your Plaid API keys (use **Sandbox** keys for local\n      development, obtainable from\n      [Plaid Dashboard](https://dashboard.plaid.com/)):\n      ```env\n      PLAID_CLIENT_ID=your_plaid_client_id\n      PLAID_SECRET_KEY_SANDBOX=your_plaid_sandbox_secret\n      # PLAID_ENV=sandbox (Optional, depending on client implementation)\n      ```\n    - **Stripe**:\n      - Get API keys from [Stripe Dashboard](https://dashboard.stripe.com/).\n      - Create a **Product** (e.g., \"What I Spent Standard\") and a **Price**\n        (e.g., $4.99/month recurring) in your Stripe Dashboard. Copy the **Price\n        ID** (it looks like `price_xxx`).\n      - Add the keys and Price ID to `.env.server`:\n      ```env\n      STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key\n      STRIPE_PRICE_ID=price_your_stripe_price_id\n      ```\n    - **Encryption Key**: Generate a secret key for encrypting Plaid access\n      tokens:\n      ```bash\n      # Run this in your terminal and copy the output\n      node -e \"console.log(require('crypto').randomBytes(32).toString('hex'))\"\n      ```\n      Add the generated key to `.env.server`:\n      ```env\n      ENCRYPTION_KEY=your_generated_32_byte_hex_key\n      ```\n    - **Database**: Ensure your database URL is set (Wasp usually handles this\n      via `DATABASE_URL` in `.env.server` if not using the default SQLite or\n      managed Postgres):\n      ```env\n      # Example for external Postgres:\n      # DATABASE_URL=\"postgresql://user:password@host:port/dbname\"\n      ```\n    - **Client URL**: Add the base URL of your frontend application for Stripe\n      redirects:\n      ```env\n      CLIENT_URL=\"http://localhost:3000\"\n      ```\n\n5.  **Database Setup**:\n\n    - Run migrations:\n      ```bash\n      wasp db migrate-dev\n      ```\n    - _(Optional)_ If using Wasp's built-in local Postgres development database\n      (requires Docker), you might need `wasp db start` first. This is often not\n      needed if you let `wasp start` manage it or use SQLite/external DB.\n\n6.  **Stripe Webhook (Local Testing)**:\n\n    - Install the [Stripe CLI](https://stripe.com/docs/stripe-cli).\n    - Run the following command in a separate terminal to forward webhooks to\n      your local Wasp app (adjust port/path if your Wasp setup differs):\n      ```bash\n      stripe listen --forward-to http://localhost:3001/api/stripe-webhooks\n      ```\n    - The command will output a webhook signing secret (looks like `whsec_xxx`).\n      Add this to your `.env.server`:\n      ```env\n      STRIPE_WEBHOOK_SECRET=whsec_your_stripe_webhook_secret\n      ```\n\n7.  **Run the App**:\n    ```bash\n    wasp start\n    ```\n\nVisit the running application (usually `http://localhost:3000`).\n\n## Contributing\n\nWe welcome contributions! Whether it's:\n\n- 🐛 Bug fixes\n- ✨ New features\n- 📝 Documentation improvements\n- 💡 Suggestions\n\nFeel free to open an issue or submit a pull request.\n\n## Learn More\n\n- [Documentation](https://roke.dev)\n- [Wasp Documentation](https://wasp-lang.dev)\n- [shadcn/ui](https://ui.shadcn.com)\n- [Motion](https://motion.dev)\n\n## License\n\nMIT License - feel free to use this in your own projects!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwardbox%2Fwhatispent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwardbox%2Fwhatispent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwardbox%2Fwhatispent/lists"}