Giter VIP home page Giter VIP logo

developerboys / kelishamiz-backend Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 2.3 MB

Public backend repository for the web and mobile applications of kelishamiz.uz, available for open-source collaboration.

Home Page: https://kelishamiz.uz

License: MIT License

Python 81.04% Dockerfile 1.68% HTML 0.08% Shell 17.20%
django django-rest-framework docker python celery celery-flower celery-worker celerybeat django-rest-framework-jwt redis

kelishamiz-backend's Introduction

Open Source Classifieds Web and Mobile Application Backend

The Open Source Classifieds Web and Mobile Application Backend is a comprehensive backend solution built using Python, Django, Django Rest Framework (DRF), Poetry, Docker, Redis, and Celery. This project aims to provide a robust and scalable backend infrastructure for open-source classifieds web and mobile applications, enabling users to create, manage, and browse classified listings seamlessly.

Features

  • User Management: Secure user authentication and registration system.
  • Listing Management: Create, edit, and delete classified listings with various attributes.
  • Search and Filtering: Efficient search functionality with filters and sorting options.
  • Image Handling: Upload, store, and manage images associated with listings.
  • Messaging: Enable communication between users interested in listings.
  • Notifications: Real-time notifications for actions related to listings.
  • Backend Scalability: Utilize Redis and Celery for handling background tasks and improving performance.
  • API Documentation: Well-documented API endpoints for seamless integration with web and mobile frontends.
  • Dockerization: Easy deployment and scalability using Docker containers.
  • Version Management: Dependency management and version specification using Poetry.

Technologies Used

  • Python
  • Django
  • Django Rest Framework (DRF)
  • Poetry (Dependency Management)
  • Docker (Containerization)
  • Redis (Caching and Background Tasks)
  • Celery (Asynchronous Task Queue)

Instructions for Running the Project

  1. Clone the Repository:

    git clone https://github.com/murtazox04/kelishamiz-backend.git
    cd kelishamiz-backend
    
  2. Set Up Virtual Environment (Recommended):

    python3 -m venv venv
    source venv/bin/activate
    
  3. Install Dependencies:

    pip install poetry
    poetry install
    
  4. Environment Variables:

    DEBUG=True
    SECRET_KEY=your_secret_key
    DATABASE_URL=your_database_url
    REDIS_URL=redis://localhost:6379/0
    
  5. Run Migrations:

    python manage.py migrate
    
  6. Start Celery Worker (in a separate terminal):

    celery -A your_project_name worker -l info
    
  7. Run the Development Server:

    python manage.py runserver
    
  8. Access API Documentation:

    Visit http://127.0.0.1:8000/docs/ for the interactive API documentation provided by DRF.

Running with Docker

If you prefer to use Docker for running the project, follow these steps:

  1. Build Docker Image:

    docker build -t kelishamiz-backend .
    
  2. Run Docker Container:

    docker run -p 8000:8000 --env-file .env kelishamiz-backend
  3. Install Certbot on your server. The easiest way is to run:

    docker run -it --rm -p 443:443 -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly
  4. Rebuild and restart your stack:

    docker-compose down
    docker-compose build
    docker-compose up -d

Contributing

We welcome contributions to enhance the functionality and features of the backend. Please refer to the CONTRIBUTING.md file for guidelines.

License

This project is licensed under the MIT License.

For detailed design architecture, please refer to the Figma Design.

For any questions or support, please contact us at [email protected]. We appreciate your interest in the project and look forward to your contributions!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.