{"id":42985028,"url":"https://github.com/revival0728/leet-share","last_synced_at":"2026-01-31T02:16:49.328Z","repository":{"id":332922914,"uuid":"1133512469","full_name":"revival0728/leet-share","owner":"revival0728","description":"A website for sharing LeetCode problem solutions.","archived":false,"fork":false,"pushed_at":"2026-01-16T08:55:44.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-16T23:13:19.517Z","etag":null,"topics":["pure-html-css-javascript","website"],"latest_commit_sha":null,"homepage":"https://revival0728.github.io/leet-share/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revival0728.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-13T12:59:04.000Z","updated_at":"2026-01-16T08:57:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/revival0728/leet-share","commit_stats":null,"previous_names":["revival0728/leet-share"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/revival0728/leet-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revival0728%2Fleet-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revival0728%2Fleet-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revival0728%2Fleet-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revival0728%2Fleet-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revival0728","download_url":"https://codeload.github.com/revival0728/leet-share/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revival0728%2Fleet-share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28926651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"online","status_checked_at":"2026-01-31T02:00:09.179Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pure-html-css-javascript","website"],"created_at":"2026-01-31T02:16:49.263Z","updated_at":"2026-01-31T02:16:49.321Z","avatar_url":"https://github.com/revival0728.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetShare\n\nA website for sharing LeetCode problem solutions.\n\n## 📁 Project Structure\n\n```\nleet-share/\n├── admin.py                           # Admin CLI tools\n├── requirements.txt                   # Python dependencies\n├── config.js                          # Frontend configuration\n├── firebase.js                        # Firebase configuration\n├── index.html                         # Main HTML file\n├── ui.js                              # UI logic and event handlers\n├── utils.js                           # Utility functions\n├── style.css                          # Main stylesheet\n├── hljs.css                           # Code highlighting stylesheet\n└── README.md                          # Project documentation\n```\n\n## 🛠️ Tech Stack\n\n### Frontend\n\n- **HTML/CSS/JavaScript** - Core web technologies\n- **Firebase Firestore** - Real-time cloud database\n- **Highlight.js** - Code syntax highlighting\n\n### Backend\n\n- **Python3** - Admin CLI tools\n- **Firebase Admin SDK** - Database management and authentication\n\n### Supported Languages\n\n- C\n- C++\n- Rust\n\nTo add support for additional programming languages, modify `admin.py`:\n\n```python\next_to_lang = {\n  \".cpp\": \"cpp\",\n  \".c\": \"c\",\n  \".rs\": \"rust\",\n  \".py\": \"python\",  # Add new language\n}\n```\n\nAlso update `index.html` to load the corresponding highlight.js language file:\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/python.min.js\"\u003e\u003c/script\u003e\n```\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- Python 3.7 or higher\n- Firebase project with Admin SDK credentials\n- Node.js (optional, for local development server)\n\n### Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/revival0728/leet-share.git\n   cd leet-share\n   ```\n\n2. **Set up Python virtual environment**\n\n   ```bash\n   python3 -m venv .venv\n   source .venv/bin/activate  # On macOS/Linux\n   # or\n   .venv\\Scripts\\activate     # On Windows\n   ```\n\n3. **Install dependencies**\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure Firebase**\n\n   - Download your Firebase Admin SDK credentials JSON file\n   - Set the environment variable:\n\n   ```bash\n   export CERT_JSON_PATH=\"path/to/leet-share-firebase-adminsdk-*.json\"\n   ```\n\n   - Or create a `.env` file:\n\n   ```\n   CERT_JSON_PATH=path/to/leet-share-firebase-adminsdk-*.json\n   ```\n\n5. **Initialize the database**\n\n   ```bash\n   python admin.py init\n   ```\n\n6. **Start the web application**\n   - Open `index.html` in a web browser\n   - Or serve it with a local server:\n   ```bash\n   # Using Python\n   python3 -m http.server 8000\n   # Using Node.js\n   npx serve .\n   ```\n\n## 📖 Usage Guide\n\n### Admin Commands\n\nUse the `admin.py` CLI tool to manage the database:\n\n```bash\npython admin.py --help\n```\n\n## 🌐 Deployment\n\nYou can deploy this repository on [GitHub Pages](https://pages.github.com)\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🔗 Resources\n\n- [GitHub Repository](https://github.com/revival0728/leet-share)\n- [Firebase Documentation](https://firebase.google.com/docs)\n- [Highlight.js Documentation](https://highlightjs.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevival0728%2Fleet-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevival0728%2Fleet-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevival0728%2Fleet-share/lists"}