⚑Quickstart

Get AskGov running locally in 30 minutes to evaluate its capabilities

πŸš€ Quickstart Guide

Overview

This guide gets you from zero to a working AskGov instance in 30 minutes. Perfect for:

  • Technical evaluation of AskGov capabilities

  • Understanding the architecture before production deployment

  • Development and customization planning

circle-info

Note: This is a development setup. For production deployment, see our AWS Production Guide or Infrastructure Guidance.

Prerequisites

Ensure you have the following installed:

  • Node.js v20+ (LTS version recommended)

  • npm 9+

  • Docker Desktop (for database and search services)

  • 4GB+ available RAM (for running all services)

Quick Prerequisites Check

# Check Node.js version
node --version

# Check npm version
npm --version

# Check Docker is running
docker --version
docker ps       # Should not error

Step 1: Clone and Setup (5 minutes)

1.1 Clone the Repository

1.2 Configure Environment

1.3 Install Dependencies

Step 2: Database Setup (5 minutes)

2.1 Start CockroachDB in Docker

2.2 Initialize Database Schema

2.3 Build the Application

Step 3: Start Development Server (2 minutes)

Step 4: Access and Explore (10 minutes)

4.1 Open AskGov

Navigate to: http://localhost:8080arrow-up-right

You'll see the AskGov homepage with sample agencies and questions.

4.2 Test User Accounts

The setup created two test accounts:

Citizen Account (Regular User):

Admin Account (Public Officer):

4.3 Key Features to Explore

As a Citizen:

  1. Search for answers - Try searching for common terms

  2. Browse by agency - Click on any agency to see their FAQs

  3. Ask a question - Submit a new question (requires login)

  4. Provide feedback - Rate answers as helpful or not

As an Admin:

  1. Manage questions - Answer, edit, or archive questions

  2. View analytics - See popular questions and feedback

  3. Manage topics - Organize questions by categories

  4. Bulk operations - Export questions for reporting

Step 5: Enable Hybrid Search (Optional, 5 minutes)

AskGov's powerful hybrid search requires Weaviate setup:

5.1 Start Weaviate (Local Development)

5.2 Initialize Search Index

  • Go to the search bar

  • Try semantic searches like "how to apply for benefits"

  • Notice how it finds relevant content even without exact matches

Step 6: Customization Preview (5 minutes)

6.1 Basic Branding

Edit key files to see customization in action:

6.2 Add Your Agency

Troubleshooting

Common Issues and Solutions

Database Connection Failed

Build Errors

Search Not Working

  • Ensure Weaviate is running: docker ps | grep weaviate

  • Check Weaviate health: curl http://localhost:8001/v1/.well-known/ready

  • Verify environment variables for Weaviate are set

Next Steps

For Evaluation

Now that you have AskGov running:

  1. Test core workflows - Create questions, provide answers, test search

  2. Review the codebase - Understand the architecture and extension points

  3. Plan customizations - Identify what needs to change for your use case

  4. Estimate resources - Use the local setup to gauge performance needs

For Development

Ready to customize? Check out:

  • Component Customization - Replace email, auth, search providers

  • Configuration Reference - All environment variables explained

  • Security Guide - Hardening for production

For Deployment

Moving to production? See:

  • AWS Production Deployment - Step-by-step AWS guide

  • Infrastructure Guidance - Azure, GCP, on-premise options

  • Evaluation Guide - Full assessment framework

Quick Command Reference


circle-check

Last updated

Was this helpful?