An open API service indexing awesome lists of open source software.

https://github.com/rezataheri01/game-store

The source code for reza-taheri.ir a website I built to learn Django, It's available for exploration
https://github.com/rezataheri01/game-store

backend bootstrap5 django django-rest-framework html-css-javascript python website

Last synced: about 1 year ago
JSON representation

The source code for reza-taheri.ir a website I built to learn Django, It's available for exploration

Awesome Lists containing this project

README

          

* * *

# Game Store Website

Welcome to the source code of [visit site](https://aghreza01.pythonanywhere.com), a **Django**-based website serving as an **eCommerce gaming store**. Explore a fully functional, customizable platform for purchasing games.

![Prince of Persia](https://github.com/user-attachments/assets/adc80554-142e-46a8-a94a-1a7534d25ad1)

---

## Table of Contents

- [Features](#features)
- [Technologies](#technologies)
- [Installation](#installation)
- [Configuration](#configuration)
- [License](#license)

---

## Features

- πŸ›’ **Fully Functional eCommerce Store**: All essential store features.
- πŸ”— **RESTful API**: Clean and efficient API for smooth integration.
- πŸ“© **Contact Form**: Reach out directly through the contact form.
- 🌐 **Fully Responsive Design**: Optimized for mobile, tablet, and desktop views.
- 🌍 **Multi-language Support**: Easy localization using Django’s translation tools.
- πŸŒ™ **Dark Mode**: A sleek dark theme for night-time browsing.
- βš™οΈ **Customizable**: Highly configurable for specific needs.
- 🌐 **Language Switcher**: Quick language change from the footer.

---

## Technologies

- **Backend**: Django 5.1.1 with Python 3.11
- **Frontend**: HTML5, CSS3, JavaScript (jQuery, Bootstrap)
- **Database**: SQLite (default) for development, MySQL for production
- **Multi-language Support**: Integrated via `django.utils.translation` and **Rosetta** for translations

---

## Installation

### 1. Clone the Repository:

```bash
git clone https://github.com/RezaTaheri01/game-store.git
cd game-store
```

### Create a virtual environment and activate it:

```
python -m virtualenv venv
source venv/bin/activate
```

### 3. Install the dependencies:

```
pip install -r requirements.txt
```
### 4. There is a default superuser:

```
user : adminadmin
password : adminadmin
```

### 4. Alternatively remove db.sqlite3, apply migrations and create a superuser:

```
python manage.py migrate
python manage.py createsuperuser
```

### 5. Run the server:

```
python manage.py runserver
```

Access the site at http://127.0.0.1:8000/

Django Admin at http://127.0.0.1:8000/admin

Rosetta at http://127.0.0.1:8000/rosetta

Api at http://127.0.0.1:8000/api/schema/swagger (use superuser user and password)

## Configuration

- **SECRET_KEY**: Django secret key
- **DEBUG**: Set to False in production
- **ALLOWED_HOSTS**: Set the domain name for production
### To get activation code and reset password, complete below:
- **EMAIL_HOST**: SMTP server for sending emails
- **EMAIL_HOST_USER**: SMTP username
- **EMAIL_HOST_PASSWORD**: SMTP password

## βœ… Todo

- [ ] Customizable theme colors

## License

This project is licensed under the MIT License. See the [LICENSE](https://github.com/RezaTaheri01/game-store/edit/main/LICENSE) file for details.

* * *