Get Started
After you purchase and receive the source code for the project:
Prerequisites
Installation
1. Environment Configuration
First, set up your environment variables by copying the example file:
cp .dev.vars.example .dev.vars
Generate a secure random string for BETTER_AUTH_SECRET (you can use tools like openssl rand -base64 32).
npx wrangler d1 create schedulehost-cf-d1
Then update d1_databases in wrangler.jsonc with the database information. (database_name, database_id)
2. Install Dependencies and Setup
npm install # Install all project dependencies
npm run db:migrate:dev # Run database migrations for development
npm run dev # Start the development server
Visit http://localhost:3000 to view the app.
Getting Started
- Sign up on the login page to create your account.
- Check the terminal output for the email verification link.
- Click the verification link to activate your account and access the dashboard.
- Create an organization to manage your projects.
- Create your first project within the organization.
- Start creating scheduled notifications (schedule tasks) for your project.
Core Data Structure
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Organization │─────▶│ Project │─────▶│ ScheduleTask │
└───────────────┘ └───────────────┘ └───────────────┘
The application follows an organization-based structure where:
- Organizations can have multiple projects
- Projects belong to one organization and can have multiple schedule tasks
- Schedule Tasks are the notification items that can be scheduled or permanent