{"id":20469073,"url":"https://github.com/ghosts6/djangogamehub","last_synced_at":"2026-04-13T00:16:04.903Z","repository":{"id":220594441,"uuid":"752056494","full_name":"Ghosts6/DjangoGameHub","owner":"Ghosts6","description":"web project to host some game like snake game ,flappy bird ,chrome dino game and tic tac toe with help of django and frontend","archived":false,"fork":false,"pushed_at":"2024-09-27T17:28:31.000Z","size":816,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T01:49:21.575Z","etag":null,"topics":["css","django","django-orm","django-rest-framework","html5","js","json","python3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ghosts6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-02T23:08:17.000Z","updated_at":"2024-09-27T17:28:34.000Z","dependencies_parsed_at":"2024-02-03T00:25:51.035Z","dependency_job_id":"a5120ce1-2696-459d-a70c-14a348c2369d","html_url":"https://github.com/Ghosts6/DjangoGameHub","commit_stats":null,"previous_names":["ghosts6/djangogamehub"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2FDjangoGameHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2FDjangoGameHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2FDjangoGameHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2FDjangoGameHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ghosts6","download_url":"https://codeload.github.com/Ghosts6/DjangoGameHub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242031638,"owners_count":20060617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["css","django","django-orm","django-rest-framework","html5","js","json","python3"],"created_at":"2024-11-15T14:07:50.183Z","updated_at":"2026-04-13T00:16:04.460Z","avatar_url":"https://github.com/Ghosts6.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![baner](https://github.com/Ghosts6/Local-website/blob/main/img/Baner.png)\n# 🌐DjangoGameHub :\n\nThis is the source code for a web platform hosting a collection of classic and AI-powered games. Built with Django and PostgreSQL for robust backend performance, and a dynamic frontend using HTML, CSS, and JavaScript. Players can enjoy classic arcade games like Snake, Flappy Bird, Tic-Tac-Toe, and Chrome's Dinosaur Game, compete on leaderboards, and challenge an AI in the new Akinator game.\n\n## 🎮 Games Included:\n*   **Snake Game:** Navigate the snake, eat food, and grow without hitting walls or yourself. Compete for high scores.\n*   **Flappy Bird:** Test your reflexes by guiding a bird through a series of pipes.\n*   **Tic-Tac-Toe:** A classic two-player game.\n*   **Chrome's Dinosaur Game:** Jump over obstacles in an endless runner.\n*   **Akinator (AI-Powered):** Think of a character, and the Akinator (powered by OpenAI) will try to guess it by asking a series of questions.\n\n## ✨ Features:\n*   **User Authentication:** Login/Register system for personalized experience.\n*   **Guest Play:** Play games without needing to register.\n*   **Leaderboards:** Track and compare high scores across different games.\n*   **Modern UI/UX:** Engaging and responsive design for a smooth gaming experience.\n*   **AI Integration:** Akinator game leverages OpenAI for intelligent guessing.\n\n## 🚀 Technologies Used:\n\nBackend: Python, Django, PostgreSQL, OpenAI API\nFrontend: HTML, CSS, JavaScript, Particles.js\n\n![Django](https://img.shields.io/badge/django-%23092E20.svg?style=plastic\u0026logo=django\u0026logoColor=white) ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=plastic\u0026logo=html5\u0026logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=plastic\u0026logo=javascript\u0026logoColor=%23F7DF1E) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=plastic\u0026logo=css3\u0026logoColor=white) ![Python](https://img.shields.io/badge/python-3670A0?style=plastic\u0026logo=python\u0026logoColor=ffdd54) ![PostgreSQL](https://img.shields.io/badge/postgresql-336791?style=plastic\u0026logo=postgresql\u0026logoColor=white) ![OpenAI](https://img.shields.io/badge/OpenAI-412991?style=plastic\u0026logo=openai\u0026logoColor=white)\n\n## ⚙️ Setup and Installation:\n\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/Ghosts6/DjangoGameHub.git\n    cd DjangoGameHub\n    ```\n2.  **Create a virtual environment and activate it:**\n    ```bash\n    python -m venv venv\n    source venv/bin/activate\n    ```\n3.  **Install dependencies:**\n    ```bash\n    pip install -r requirements.txt\n    ```\n4.  **Set up environment variables:**\n    *   Create a `.env` file in the `game/game/` directory.\n    *   Add your PostgreSQL database configuration.\n    *   Add your OpenAI API key: `OPENAI_API_KEY='your_openai_api_key_here'`\n5.  **Run database migrations:**\n    ```bash\n    python game/manage.py migrate\n    ```\n6.  **Create a superuser (optional):**\n    ```bash\n    python game/manage.py createsuperuser\n    ```\n7.  **Run the development server:**\n    ```bash\n    python game/manage.py runserver\n    ```\n    The application will be available at `http://127.0.0.1:8000/`.\n\n## 🎬 Demo:\n\n[Demo.webm](https://github.com/user-attachments/assets/01c084d7-cb3e-46f3-a35e-2e648e665d18)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosts6%2Fdjangogamehub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghosts6%2Fdjangogamehub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosts6%2Fdjangogamehub/lists"}