Skip to content

VachaganGrigoryan/gamezone-app

Repository files navigation

Game Zone API

Welcome to Game Zone Project! This project is set up with Django, Poetry, Docker, and Docker Compose to make installation and local development a breeze.

We are build open source GraphQl API for gaming platform. Our goal to make great gaming platform and have big community.

Prerequisites

Before you get started, ensure you have the following installed on your system:

Quick Start

  1. Clone the repository:

    git clone git@github.com:VachaganGrigoryan/gamezone-app.git
    cd gamezone-app
  2. Clone .env.example file to .env file and change variables.

     cp .env.example .env
  3. Start the Docker containers:

    docker-compose up --build

Installation

  1. Create a virtual environment using Poetry:

    poetry install
  2. Start the Docker containers:

    docker-compose up --build
  3. Apply database migrations:

    docker-compose exec api python manage.py migrate
  4. Create a superuser:

    docker-compose exec api python manage.py createsuperuser
  5. Access the Django development server:

Docker and Docker Compose

  • The Docker containers are defined in the docker-compose.yml file.
  • The Docker Compose configuration is set up to use the .env file for environment variables.
  • Edit dockerfile and docker-compose.yml files to change the configuration of the containers.

Project Structure

  • account/: Django app for user authentication.
  • core/: Django app for core functionality of the project.
  • game/: Django app for game, here we can new game as django app.
  • server/: Django project settings.
  • scripts/: Scripts for development and production.

Development and Deployment

Adjust settings in the .env file for development and production. For production deployment, consider additional configuration, such as using a production-ready database and web server.