Git Product home page Git Product logo

prompt-to-game's Introduction

prompt-to-game

Welcome to prompt-to-game, a cutting-edge backend platform designed to transform your textual ideas into interactive, AI-generated games. This project harnesses the power of Django and Django REST Framework (DRF), along with advanced AI technologies such as GPT-4, Stable Diffusion, and ControlNet, to create a seamless bridge between your imagination and a personalized gaming experience. It uses firebase for user-authentication and Postgres SQL as the underlying database.

Overview

prompt-to-game leverages textual prompts to dynamically generate unique games, deploying them instantly on Netlify. Our system uses Firebase for robust authentication, PostgreSQL for secure data storage, and a Django-based backend for seamless integration and processing.

Features

  • AI-Powered Game Generation: Utilize advanced AI models like GPT-4, Stable Diffusion, and ControlNet to turn textual prompts into playable games.
  • Secure Authentication: Implements Firebase for a comprehensive and secure authentication process.
  • Persistent Storage: Leverages PostgreSQL for reliable storage of user data and generated games.
  • Automatic Deployment: Automatically deploys generated games to Netlify, providing users with instant access to their creations.
  • User Dashboard: Offers a comprehensive dashboard for users to manage their prompts, view generated games, and access deployment links.

Getting Started

Prerequisites

  • Python (version 3.8 or later)
  • PostgreSQL
  • Firebase account
  • Netlify account

Installation

  1. Clone the repository:
git clone https://github.com/Addy-codes/prompt-to-game.git
cd prompt-to-game
  1. Set up a virtual environment and activate it:
python -m venv env
source env/bin/activate
  1. Install the required Python packages:
pip install -r requirements.txt

Running the Application

  1. Apply the migrations to your database:
python manage.py migrate
  1. Start the Django development server:
python manage.py runserver

The server will start and be available at http://localhost:8000.

  1. To generate a game, make a POST request to /prompt with a JSON body containing your prompt:
{
  "prompt": "A puzzle game set in a post-apocalyptic world"
}

Acknowledgments

  • Thanks to OpenAI for GPT-4, and the teams behind Stable Diffusion and ControlNet for their incredible AI models.
  • Firebase, PostgreSQL, and Netlify for their robust services that support this project's infrastructure.

Explore prompt-to-game and unleash the power of your creativity. We can't wait to see the games you'll create!

prompt-to-game's People

Contributors

addy-codes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.