- Node.js 18 or higher
- pnpm package manager
- Clone the repository:
git clone <repository-url>
cd taxocity- Install dependencies:
pnpm install-
Create a
.envfile in the root directory (see.env.examplebelow) -
Run the development server:
pnpm dev- Open http://localhost:3000 in your browser
pnpm build
pnpm start- Razorpay: Sign up at razorpay.com and get test/live keys
- Resend: Get API key from resend.com
- TeleCRM: Contact your TeleCRM provider for API credentials
- Google Sheets: Follow the integration steps below
This application uses Google Sheets API to capture and store lead data. Follow these steps to set up the integration:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Google Sheets API:
- Navigate to "APIs & Services" > "Library"
- Search for "Google Sheets API"
- Click "Enable"
- Go to "APIs & Services" > "Credentials"
- Click "Create Credentials" > "Service Account"
- Fill in the service account details and click "Create"
- Skip the optional permissions and click "Done"
- Click on the newly created service account
- Go to the "Keys" tab
- Click "Add Key" > "Create new key"
- Select "JSON" and click "Create"
- Save the downloaded JSON file securely
- Create a new Google Sheet or use an existing one
- Set up the following columns in "Sheet1" (in this exact order):
- Column A: Phone
- Column B: Name
- Column C: Email
- Column D: State
- Column E: Payment Status
- Column F: Payment Amount
- Column G: Payment ID
- Column H: Order ID
- Column I: Payment Date
- Column J: Last Updated
- Copy the Spreadsheet ID from the URL:
- The ID is the long string between
/d/and/editin the URL - Example:
https://docs.google.com/spreadsheets/d/{SPREADSHEET_ID}/edit
- The ID is the long string between
- Share the spreadsheet with the service account email:
- Click "Share" in the top right
- Paste the service account email (found in the JSON file as
client_email) - Give it "Editor" access
Add the following to your .env file:
# Google Sheets Configuration
GOOGLE_SERVICE_ACCOUNT_EMAIL=your-service-account@project-id.iam.gserviceaccount.com
GOOGLE_SERVICE_ACCOUNT_KEY={"type":"service_account","project_id":"..."}
GOOGLE_SHEETS_SPREADSHEET_ID=your-spreadsheet-idImportant Notes:
GOOGLE_SERVICE_ACCOUNT_KEY: Paste the entire contents of the downloaded JSON file as a single-line stringGOOGLE_SERVICE_ACCOUNT_EMAIL: Found in the JSON file asclient_emailGOOGLE_SHEETS_SPREADSHEET_ID: The ID from your spreadsheet URL