Complete implementation of the Goa Government e-Licensing platform with: Backend: - NestJS API with JWT authentication - PostgreSQL database with Knex ORM - Redis caching and session management - MinIO document storage - Hyperledger Besu blockchain integration - Multi-department workflow system - Comprehensive API tests (266/282 passing) Frontend: - Angular 21 with standalone components - Angular Material + TailwindCSS UI - Visual workflow builder - Document upload with progress tracking - Blockchain explorer integration - Role-based dashboards (Admin, Department, Citizen) - E2E tests with Playwright (37 tests) Infrastructure: - Docker Compose orchestration - Blockscout blockchain explorer - Development and production configurations
7.7 KiB
🚀 Getting Started - Goa-GEL Documentation Service
Quick start guide to get the documentation service running in under 5 minutes.
⚡ Quick Start (Choose One Method)
Method 1: Docker (Recommended) - 2 Minutes
# 1. Navigate to Documentation directory
cd Documentation
# 2. Build the Docker image
docker build -t goa-gel-docs .
# 3. Run the container
docker run -d -p 8080:80 --name goa-gel-docs goa-gel-docs
# 4. Open in browser
open http://localhost:8080
Done! The documentation is now running at http://localhost:8080
Method 2: Docker Compose - 1 Minute
# 1. Navigate to Documentation directory
cd Documentation
# 2. Start the service
docker-compose up -d
# 3. Open in browser
open http://localhost:8080
Done! The documentation is now running at http://localhost:8080
Method 3: Local Development - 3 Minutes
# 1. Navigate to Documentation directory
cd Documentation
# 2. Install dependencies
npm install
# 3. Start local server
npm start
# 4. Open in browser
open http://localhost:8080
Done! The documentation is now running at http://localhost:8080
📖 What You'll See
Homepage (http://localhost:8080)
A beautiful landing page with:
- 📊 Platform statistics
- 🎯 Quick start cards for different user roles
- 📚 Complete documentation library
- 👤 Role-based navigation
- ✨ Feature highlights
Documentation Viewer (http://localhost:8080/viewer.html?doc=USER_GUIDE)
An interactive documentation viewer with:
- 📘 Markdown rendering with syntax highlighting
- 📑 Table of contents (auto-generated)
- 🔍 Quick document selector
- 💾 Download as Markdown
- 🖨️ Print-friendly version
- 📱 Mobile responsive design
📚 Available Documentation
Navigate to any of these guides:
| Guide | URL | Size |
|---|---|---|
| User Guide | /viewer.html?doc=USER_GUIDE |
650+ lines |
| Testing Guide | /viewer.html?doc=E2E_TESTING_GUIDE |
600+ lines |
| Implementation Status | /viewer.html?doc=IMPLEMENTATION_COMPLETE |
380+ lines |
| Architecture Guide | /viewer.html?doc=ARCHITECTURE_GUIDE |
1000+ lines |
| Quick Start | /viewer.html?doc=QUICK_START |
200+ lines |
| Documentation Index | /viewer.html?doc=DOCUMENTATION_INDEX |
400+ lines |
| Implementation Summary | /viewer.html?doc=IMPLEMENTATION_SUMMARY |
300+ lines |
🎯 Next Steps
For Users
- Click on "I'm a User" card on homepage
- Read your role-specific guide (Admin/Department/Citizen)
- Follow step-by-step instructions
For Testers
- Click on "I Need to Test" card
- Read the E2E Testing Guide
- Follow the 20 test scenarios
For Developers
- Click on "I'm a Developer" card
- Read Implementation Complete guide
- Review Architecture Guide
For Architects
- Click on "I'm an Architect" card
- Read Architecture Guide
- View system diagrams
🛠️ Common Commands
Docker Commands
# View logs
docker logs -f goa-gel-docs
# Stop the service
docker stop goa-gel-docs
# Start the service
docker start goa-gel-docs
# Restart the service
docker restart goa-gel-docs
# Remove the container
docker stop goa-gel-docs
docker rm goa-gel-docs
# Rebuild after changes
docker build -t goa-gel-docs .
docker stop goa-gel-docs && docker rm goa-gel-docs
docker run -d -p 8080:80 --name goa-gel-docs goa-gel-docs
Docker Compose Commands
# Start services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose stop
# Restart services
docker-compose restart
# Remove everything
docker-compose down
# Rebuild and restart
docker-compose up -d --build
Local Development Commands
# Start server (port 8080)
npm start
# Start server with auto-open browser
npm run dev
# Install dependencies
npm install
✅ Verify Installation
1. Check Service is Running
# Test homepage
curl -I http://localhost:8080/
# Expected output:
# HTTP/1.1 200 OK
# Content-Type: text/html
2. Check Documentation Loads
# Test documentation file
curl http://localhost:8080/docs/USER_GUIDE.md
# Should return markdown content
3. Check in Browser
- Open: http://localhost:8080
- Should see beautiful homepage
- Click any card or navigation link
- Documentation should load
🐛 Troubleshooting
Port 8080 Already in Use
Solution 1: Use Different Port
# Docker
docker run -d -p 9090:80 --name goa-gel-docs goa-gel-docs
# Then access at: http://localhost:9090
Solution 2: Find and Kill Process
# Find what's using port 8080
lsof -i :8080
# Kill the process (replace PID with actual PID)
kill -9 PID
Docker Build Fails
Check Docker is Running
docker --version
docker ps
# If not running, start Docker Desktop
Clear Docker Cache
docker system prune -a
docker build --no-cache -t goa-gel-docs .
Documentation Not Loading
Check files exist
ls -la docs/
# Should see all .md files
ls -la public/
# Should see index.html, viewer.html, css/, js/
Check container logs
docker logs goa-gel-docs
# Look for any error messages
Blank Page or 404 Errors
Clear Browser Cache
- Press Ctrl+Shift+R (Windows/Linux)
- Press Cmd+Shift+R (Mac)
- Or use Incognito/Private mode
Check network tab
- Open browser DevTools (F12)
- Go to Network tab
- Refresh page
- Look for failed requests (red)
📱 Access from Mobile
Same Network
-
Find your computer's IP address:
# Mac/Linux ifconfig | grep "inet " # Windows ipconfig -
On mobile, open browser and go to:
http://YOUR_IP_ADDRESS:8080
Public Access (Advanced)
Use a reverse proxy or cloud hosting (see DEPLOY.md for details)
🔄 Updating Documentation
Update Markdown Files
- Edit
.mdfiles indocs/directory - Rebuild and restart:
Docker:
docker build -t goa-gel-docs .
docker stop goa-gel-docs && docker rm goa-gel-docs
docker run -d -p 8080:80 --name goa-gel-docs goa-gel-docs
Local:
# No rebuild needed - just refresh browser
# Server automatically serves updated files
Add New Documentation
- Add new
.mdfile todocs/directory - Update
public/js/viewer.js- add toDOC_MAP:const DOC_MAP = { 'YOUR_NEW_DOC': '/docs/YOUR_NEW_DOC.md', // ... existing entries }; - Rebuild and restart (if using Docker)
💡 Tips & Best Practices
Performance
- Documentation loads instantly (< 1s)
- Syntax highlighting is automatic
- Gzip compression enabled
- Browser caching configured
Navigation
- Use sidebar for quick navigation
- Use dropdown selector for document switching
- Use table of contents for long documents
- Browser back/forward buttons work
Viewing
- Click any heading in TOC to jump to section
- Use print button for PDF generation
- Use download button to save Markdown
- Mobile-friendly design works on all devices
📞 Need Help?
Documentation
- README.md: Complete feature documentation
- DEPLOY.md: Production deployment guide
- This file: Quick start guide
Support
- Email: support@goa.gov.in
- Issues: GitHub repository
- Documentation: Available in the service itself
🎉 Success!
You now have a fully functional documentation service running!
What's Next?
- ✅ Explore the homepage
- ✅ Read the user guide for your role
- ✅ Test the documentation viewer features
- ✅ Share the URL with your team
- ✅ Deploy to production (see DEPLOY.md)
Happy documenting! 📚
Version: 1.0.0 Last Updated: February 2026 Service Port: 8080 (default) Status: Production Ready ✅