iralex-backend/README.md

2.5 KiB

setting.py is in detective_book folder you can see the settings of this project

ira-lex Project Readme

Welcome to the documentation for the ira-lex Django project! This document serves as a guide to understanding the project's structure, functionality, and how to get it up and running on your local machine.

Table of Contents

Project Overview

[Project Name] is a Django-based web application designed to [briefly describe the project's main purpose and features].

Features

  • admin panel and customer panel (this repo contains just customer repo)

Getting Started

Follow these instructions to set up and run the project on your local machine.

Prerequisites

  • Python [version 3.10]
  • [Database] (MongoDB, PostgreSQL, Redis)[you don't need setup database in you local system. the database is run from server]
  • [python celery and another library in requirements.txt file]

Installation

  1. Clone this repository to your local machine:

    git clone [git@gitlab.com:yo3ef.amini/iralex-backend.git]
    cd [iralex-backend]
    
  2. Create a virtual environment:

    virtualenv venv -p python3.10
    
  3. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
      
    • On macOS and Linux:

      source venv/bin/activate
      
  4. Install the required dependencies:

    pip install -r requirements.txt
    

Configuration

  1. Copy the .env.example file to .env:

    cp .env.example .env
    
  2. Edit the .env file and set the necessary environment variables:

    • SECRET_KEY: Django secret key for security
    • DEBUG: Set to True for development, False for production
    • DATABASE_URL: URL to your database
    • [Other configuration variables]

Usage

  1. Apply database migrations:

    python manage.py migrate
    
  2. Create a superuser account:

    python manage.py createsuperuser
    
  3. Start the development server:

    python manage.py runserver
    
  4. Access the application in your web browser at http://127.0.0.1:8000/.

Thank you for your interest in the [ira-lex] project. If you have any questions or need further assistance, please don't hesitate to [https://gitlab.com/ehsangheychisaz]. Happy coding!