Installation

Get started with Accumo in your project. Follow these steps to install and configure your development environment.

Prerequisites

Before you begin, make sure you have the following installed:

  • Node.js 18.x or later
  • pnpm 8.x or later
  • A Cloudflare account
  • Wrangler CLI (optional, but recommended)

Quick Start

The fastest way to get started is to use our CLI:

pnpm create cloudflare-workers-saas my-app

This will create a new directory with a basic project structure and install all dependencies.

Manual Setup

If you prefer to set up your project manually, follow these steps:

  1. Clone the repository:
    git clone https://github.com/yourusername/your-repo.git my-app
  2. Install dependencies:
    cd my-app pnpm install
  3. Set up environment variables:
    cp .env.example .env cp .dev.vars.example .dev.vars
  4. Initialize the database:
    pnpm db:migrate:dev

Configuration

After installation, you'll need to configure your environment variables and Cloudflare settings:

  1. Open .env and fill in your environment variables
  2. Open .dev.vars and add your Cloudflare credentials
  3. Update wrangler.toml with your project settings

After making changes to wrangler.toml, run pnpm cf-typegen to update TypeScript types.

Development

Start the development server:

pnpm dev

Your application will be available at http://localhost:3000.

Next Steps