Skip to content

Installation Guide

Nguyen Long Vu edited this page May 28, 2025 · 7 revisions

Step 1: Clone the repository

git clone https://github.com/ZACZ1NH0/BookStation.git
cd BookStation

Step 2: Create and activate a virtual environment (using Python 3.11)

⚠️ Make sure Python 3.11 is installed.

py -3.11 -m venv venv
  • Activate the environment: .\venv\Scripts\activate

Step 3: Install dependencies

pip install -r requirements.txt

Step 4: Configure MySQL database

Create a database named bookstore_db and use the following settings:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'bookstore_db',
        'USER': 'root',
        'PASSWORD': '1234',
        'HOST': 'localhost',
        'PORT': '3306',
        'OPTIONS': {
            'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
        },
    }
}

Clone this wiki locally