You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
A simple web platform that allows users to create, test and host static websites and Python scripts. Built with Python Flask and PostgreSQL. Made by Ethan Canterbury and Hack Club ❤️
Features
User authentication and management
Create and host static websites
Python script editor and execution
Real-time code editing
Automatic deployments
Custom domain support
HCB Integration
Hackatime Integration
Setup (Selfhosting Spaces!!)
Clone this project and create a new.env file:
cp .env.example .env
Create a.env file with the following configuration:
# Database configurationDATABASE_URL=postgresql://username:password@localhost:5432/your_database# Application secret key (generate a secure random string)SECRET_KEY=your-secret-key-here# ImgBB API key for image uploads (get from https://api.imgbb.com/)IMGBB_API_KEY=your-imgbb-api-key-here# WakaTime API key for Hackatime integration (optional)WAKATIME_API_KEY=your-wakatime-api-key-here# Groq API key for AI chat functionality (required for Orphy chat)GROQ_API_KEY=your-groq-api-key-here
Important: Never commit your.env file to version control. It's already included in.gitignore.
Install Python dependencies:
pip install -r requirements.txt
Initialize the database:
python setup_db.py
Run the application:
python main.py
The application will be available athttp://0.0.0.0:3000.
Database Schema
Users: Stores user information and authentication details
Sites: Stores website/script content and metadata
VERY IMPORTANT!!!
You MUST have a db created with the correct tables or it will NOT work!! If even the tiniest table is formatted wrong, it will not start!
License
This project is part of HackClub and follows HackClub's licensing terms. Contributing and socializing on this project is subject to the Hack Club Code of Conduct
For support, create an issue or go to #spaces on slack! Need private help? @ecanterbury. Club help? @jps
Management
This project is managed and lead by Ethan Canterbury