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.
Before you get started, ensure you have the following installed on your system:
- Docker: Install Docker
- Docker Compose: Install Docker Compose
- Python 3.10 or higher: Python Installation
- Poetry: Install Poetry
- Strawberry GraphQL: Install Strawberry
-
Clone the repository:
git clone git@github.com:VachaganGrigoryan/gamezone-app.git cd gamezone-app
-
Clone
.env.example
file to.env
file and change variables.cp .env.example .env
-
Start the Docker containers:
docker-compose up --build
-
Create a virtual environment using Poetry:
poetry install
-
Start the Docker containers:
docker-compose up --build
-
Apply database migrations:
docker-compose exec api python manage.py migrate
-
Create a superuser:
docker-compose exec api python manage.py createsuperuser
-
Access the Django development server:
- Django Admin: http://127.0.0.1:8000/admin/
- GraphQl Playground: http://127.0.0.1:8000/graphql/
- 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.
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.
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.