Skip to content

Cuba-Bitcoin/cubabitcoin.org

Repository files navigation

Cuba Bitcoin Website

The official website of the Cuba Bitcoin community (cubabitcoin.org), focused on Bitcoin education and community services in Cuba.

Cuba Bitcoin

About

Cuba Bitcoin is a community dedicated to Bitcoin education in Cuba. The website provides:

  • Educational Resources: Courses, tutorials, and educational content about Bitcoin
  • Community Services: LNbits, BTCPay Server, Cashu Mint for the Cuban community
  • Proof of Work: Timeline of community achievements and events
  • P2P Trading: Platforms for buying Bitcoin without KYC
  • Donations: BTCPay Server integration for community funding
  • Nostr Integration: Directory and NIP05 identity services

Tech Stack

  • HTML5 - Semantic markup
  • Bootstrap 5 - Responsive design and UI components
  • Custom CSS - Brand-specific styling in css/global.css
  • Font Awesome - Icons
  • No Build Process - Direct HTML/CSS/JS development

Quick Start

Using Docker (Recommended)

  1. Build and run the container:
docker build -t cubabitcoin .
docker run -d -p 80:80 --name cubabitcoin cubabitcoin
  1. Or use Docker Compose:
# Development with live reload
docker-compose up dev

# Production
docker-compose up web
  1. Open your browser:
    • Visit http://localhost for production
    • Visit http://localhost:8080 for development

Without Docker

Simply open index.html in your browser, or serve it with any static file server:

# Using Python
python3 -m http.server 8000

# Using PHP
php -S localhost:8000

# Using Node.js
npx serve .

Docker Commands

Command Description
docker build -t cubabitcoin . Build the image
docker run -d -p 80:80 cubabitcoin Run the container
docker-compose up -d web Run with docker-compose
docker-compose logs -f View logs
docker-compose down Stop containers
docker exec -it cubabitcoin sh Access container shell

Project Structure

cubabitcoin.org/
├── index.html          # Main HTML file
├── css/
│   └── global.css     # Custom styles
├── img/               # Images and assets
├── assets/            # Favicon and static assets
├── kmbalache/         # Kmbalache P2P instance
├── Dockerfile         # Docker image definition
├── Dockerfile.dev     # Development Docker image
├── docker-compose.yml # Docker Compose configuration
├── nginx.conf         # Nginx configuration
└── README.md          # This file

Environment Variables

No environment variables are required for basic deployment. For production with SSL, configure:

  • SSL_CERT_PATH - Path to SSL certificate
  • SSL_KEY_PATH - Path to SSL private key

Deployment

Production with SSL

  1. Place your SSL certificates in the ssl/ directory:

    • ssl/cert.pem - SSL certificate
    • ssl/key.pem - Private key
  2. Use the production configuration:

docker-compose up -f docker-compose.yml -f docker-compose.prod.yml production

Deploy to Various Platforms

Render

# Using Render's Docker deployment

Railway

# Using Railway's Docker deployment

Fly.io

fly launch
fly deploy

AWS ECS

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $ECR_REPO
docker tag cubabitcoin:latest $ECR_REPO/cubabitcoin:latest
docker push $ECR_REPO/cubabitcoin:latest

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing-feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Community

Support

If you find this project useful, please consider supporting us:

About

Sitio de la comunidad CubaBitcoin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors