Skip to content

A Django application with Telegram integration to help users manage and track their plant cultivation activities.

License

Notifications You must be signed in to change notification settings

verdiary/backend

Repository files navigation

Contributors Forks Stargazers Issues Apache 2.0 License


Verdiary Logo

Verdiary

A Django application with Telegram integration to help users manage and track their plant cultivation activities. · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

This Django application is designed to help users manage and track their plant cultivation activities. It includes features for cataloging plant types and varieties, tracking growth stages, and receiving recommendations for plant care operations. The application also integrates with Telegram for user interaction.

Built With

  • Django
  • Python
  • Docker

(back to top)

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

  • Docker installed on your machine.

Installation

  1. Clone the repository.
    git clone https://github.com/verdiary/backend.git
    cd backend
  2. Create a .env file in the root directory and add the following environment variables:
    SECRET_KEY=your_secret_key_here
    BOT_TOKEN=your_bot_token_here
    Replace your_secret_key_here and your_bot_token_here with your actual secret key and Telegram bot token.
  3. Build and run the Docker containers.
    docker compose up --build
  4. Create a superuser to access the admin interface:
    docker compose exec server python manage.py createsuperuser
  5. Access the application at http://localhost:8000 and the admin interface at http://localhost:8000/admin.

Configuration

The application can be configured using environment variables in the .env file. The following variables are supported:

  • SECRET_KEY: Django secret key (required)
  • BOT_TOKEN: Telegram bot token (required)
  • DEBUG: Enable debug mode (default: True)
  • ALLOWED_HOSTS: List of allowed hosts (default: "localhost,127.0.0.1")
  • DATABASE_URL: Database URL (default: sqlite:////app/db.sqlite3)
  • LANGUAGE_CODE: Language code (default: "ru-ru")
  • TIME_ZONE: Time zone (default: "UTC")
  • BOT_WEBHOOK_TOKEN: Telegram bot webhook token (optional)

Additional configuration options are available in backend/core/settings.py.

(back to top)

Usage

The Django admin interface provides a comprehensive way to manage the application's data. Administrators can:

  • Manage plant catalogs, including types, varieties, growth steps, and care operations.
  • Oversee user plants, their growth stages, and user profiles.
  • View Telegram user information.

Access the admin interface at http://localhost:8000/admin after creating a superuser.

(back to top)

Roadmap

  • Enhance Telegram bot functionality.
  • Add more plant care recommendations.
  • Improve user interface.

See the open issues for a full list of proposed features and known issues.

(back to top)

Contributing

Contributions are welcome. Please fork the repository and create a pull request.

(back to top)

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

(back to top)

Contact

Project Link: https://github.com/verdiary

(back to top)

Acknowledgments

  • Django community for the framework.
  • Windsurf for the AI assistant.
  • CodeRabbitAI for the AI reviews.
  • Docker for containerization.

(back to top)

About

A Django application with Telegram integration to help users manage and track their plant cultivation activities.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •