⚡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
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 errorStep 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:8080
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):
Email:
user@gmail.comPassword:
ogprocks!
Admin Account (Public Officer):
Email:
admin@open.gov.sgPassword:
ogprocks!
4.3 Key Features to Explore
As a Citizen:
Search for answers - Try searching for common terms
Browse by agency - Click on any agency to see their FAQs
Ask a question - Submit a new question (requires login)
Provide feedback - Rate answers as helpful or not
As an Admin:
Manage questions - Answer, edit, or archive questions
View analytics - See popular questions and feedback
Manage topics - Organize questions by categories
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
5.3 Verify Search
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 weaviateCheck Weaviate health:
curl http://localhost:8001/v1/.well-known/readyVerify environment variables for Weaviate are set
Next Steps
For Evaluation
Now that you have AskGov running:
Test core workflows - Create questions, provide answers, test search
Review the codebase - Understand the architecture and extension points
Plan customizations - Identify what needs to change for your use case
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
🎉 Congratulations! You now have a working AskGov instance. Explore the features, test the workflows, and when ready, proceed to our Evaluation Guide or Production Deployment guides.
Last updated
Was this helpful?