GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TerexitariusStomp/comeunity: Interactive map showing 1,813 intentional communities accepting volunteers, visitors, and job seekers

BranchesTags
Open more actions menu

Latest commit

 

History

221 Commits
221 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
backend
backend
 
 
data
data
 
 
embed-scripts
embed-scripts
 
 
frontend
frontend
 
 
functions/api
functions/api
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
API_KEYS.md
API_KEYS.md
 
 
DEPLOY-CLOUDFLARE.md
DEPLOY-CLOUDFLARE.md
 
 
DEPLOYMENT.md
DEPLOYMENT.md
 
 
README.md
README.md
 
 
convert_atlas_to_geojson.py
convert_atlas_to_geojson.py
 
 
convert_to_geojson.py
convert_to_geojson.py
 
 
dedup_and_embed.py
dedup_and_embed.py
 
 
dedup_prefer_atlas.py
dedup_prefer_atlas.py
 
 
deploy.sh
deploy.sh
 
 
export-to-d1.py
export-to-d1.py
 
 
schema.sql
schema.sql
 
 
setup.sh
setup.sh
 
 
wrangler.toml
wrangler.toml
 
 

Repository files navigation

Volunteer Organization Map

Interactive map for volunteer.templeeearth.cc showing organizations and their descriptions.

Features

  • Interactive map with organization markers
  • Filtering by organization type, location, and volunteer opportunities
  • Detailed organization profiles with descriptions
  • Volunteer opportunity listings
  • Responsive design
  • RESTful API for integration

Quick Start

Prerequisites

  • Python 3.9+
  • Node.js (for frontend development)
  • SQLite (included with Python)
  • Cloudflare Tunnel (optional, for production deployment)

Installation

  1. Clone or download the project to your server:
sudo mkdir -p /opt/volunteer-map
cd /opt/volunteer-map
  1. Run the setup script:
sudo chmod +x setup.sh
./setup.sh
  1. Start the services:
# Backend (auto-started via systemd)
sudo systemctl start volunteer-map

# Frontend development server
cd frontend
npm start
  1. Access the application:
  • Frontend: http://localhost:3000
  • API: http://localhost:8000
  • API Documentation: http://localhost:8000/docs

Project Structure

/opt/volunteer-map/
├── backend/           # FastAPI backend application
│   ├── app/           # Main application package
│   │   ├── models.py  # Database models
│   │   ├── schemas.py # Pydantic schemas
│   │   └── main.py    # FastAPI application
│   ├── scripts/       # Utility scripts
│   │   └── seed_db.py # Database seeding script
│   ├── alembic.ini    # Alembic migration configuration
│   ├── requirements.txt # Python dependencies
│   └── .env           # Environment configuration
├── frontend/          # React/Vanilla JS frontend
│   ├── css/           # Stylesheets
│   ├── js/            # JavaScript application
│   ├── index.html     # Main HTML file
│   └── package.json   # (Optional) Frontend dependencies
├── data/             # Data files and configuration
├── scripts/          # Additional scripts
├── cloudflare-tunnel-config.json # Cloudflare Tunnel configuration
├── setup.sh          # Setup script
└── README.md         # This file

Backend API

Organizations

  • GET /api/organizations/ - List all organizations (with filtering)
  • GET /api/organizations/{id} - Get specific organization
  • POST /api/organizations/ - Create new organization (admin)
  • PUT /api/organizations/{id} - Update organization (admin)
  • DELETE /api/organizations/{id} - Delete organization (admin)

Volunteer Opportunities

  • GET /api/opportunities/ - List all opportunities
  • GET /api/organizations/{id}/opportunities - Get opportunities for organization
  • POST /api/opportunities/ - Create new opportunity (admin)

Search

  • GET /api/organizations/nearby - Find organizations near a location
    • Parameters: latitude, longitude, radius_km, limit

Statistics

  • GET /api/statistics/ - Get application statistics
  • GET /api/health/ - Health check endpoint

Database Schema

Organizations Table

  • id - Primary key
  • name - Organization name
  • description - Detailed description
  • organization_type - Type (ecovillage, nonprofit, community-group, educational)
  • website - Organization website
  • email - Contact email
  • phone - Contact phone
  • address - Street address
  • city - City
  • region - State/Province/Region
  • country - Country
  • postal_code - Postal/ZIP code
  • latitude - Geographic latitude
  • longitude - Geographic longitude
  • location - PostGIS geography point
  • volunteer_opportunities - Boolean flag
  • accepting_volunteers - Boolean flag
  • created_at - Timestamp
  • last_updated - Timestamp

Volunteer Opportunities Table

  • id - Primary key
  • organization_id - Foreign key to organizations
  • title - Opportunity title
  • description - Detailed description
  • role - Role/position
  • skills_needed - Required skills
  • start_date - Start date
  • end_date - End date
  • commitment - Time commitment
  • remote_options - Remote work available
  • application_email - Application contact email
  • created_at - Timestamp

Deployment

Production with Cloudflare Tunnel

  1. Install Cloudflare Tunnel:
cloudflared tunnel --url http://localhost:8000
  1. Create and configure the tunnel:
cloudflared tunnel create volunteer-map
  1. Update /opt/volunteer-map/cloudflare-tunnel-config.json with your account details.

  2. Run the tunnel:

cloudflared tunnel --config /opt/volunteer-map/cloudflare-tunnel-config.json run
  1. Configure your DNS to point volunteer.templeeearth.cc to the Cloudflare Tunnel.

Systemd Service

The application includes a systemd service file (/etc/systemd/system/volunteer-map.service) that:

  • Runs as the terexitarius user
  • Automatically restarts on failure
  • Starts on boot

Manage the service with:

sudo systemctl start volunteer-map
sudo systemctl stop volunteer-map
sudo systemctl restart volunteer-map
sudo systemctl status volunteer-map

Development

Backend Development

cd /opt/volunteer-map/backend
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Frontend Development

cd /opt/volunteer-map/frontend
npm install
npm start

Running Migrations

cd /opt/volunteer-map/backend
alembic upgrade head

Data Management

Seeding Sample Data

cd /opt/volunteer-map/backend
python scripts/seed_db.py

Adding Organizations

Organizations can be added via the API or through a future admin interface.

Configuration

Environment Variables

  • DATABASE_URL - Database connection string
  • SECRET_KEY - Secret key for signing data
  • BACKEND_CORS_ORIGINS - Allowed CORS origins

Security Considerations

  1. Change the SECRET_KEY in production.
  2. Use HTTPS with Cloudflare Tunnel.
  3. Implement proper authentication/authorization for API endpoints.
  4. Regularly update dependencies for security patches.

Troubleshooting

Common Issues

Database connection errors:

  • Ensure SQLite is installed
  • Check file permissions for the database file

API not responding:

  • Check systemd service status: sudo systemctl status volunteer-map
  • Check logs: journalctl -u volunteer-map

Frontend not loading:

  • Ensure Node.js and npm are installed
  • Check that the backend API is running

Debugging

Enable debug logging by setting DEBUG=1 in the environment.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the open-source tools that make this project possible
  • Special thanks to the volunteer.templeeearth.cc team for the inspiration

About

Interactive map showing 1,813 intentional communities accepting volunteers, visitors, and job seekers

terexitariusstomp.github.io/comeunity/

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.