Akinon Release Notes (05/12/2025) are now live! Click here to learn what's new.
LogoLogo
API Reference
  • Home
  • Quick Start
  • Tutorials
  • Technical Guides
  • Release Notes
  • Glossary
  • Welcome to Akinon Technical Guides
  • ACC
    • ACC CLI
    • Create Application via CLI
    • Deploy Environment Variables
    • App Store for Developers
  • Omnitron
    • Product Types
    • Product Categorization
    • Splitting a Merged Order Item
  • Commerce
    • Shipping Rules Calculator
    • Data Source Shipping Options
    • Attribute Based Shipping Options
    • Filtering Products
    • Conversation & Messages
    • Sitemap Configuration
    • Weight-Based Product Sales
    • Group Attribute Sets
    • Contract Management
    • Find in Store for Whippy Ware
    • Plugins
    • Remote Price
    • E-mail Templates
    • Loyalty Accounts
    • Search Structure
    • User Segmentation & Rules
    • Promotions
  • OMS
    • Getting Started with OMS
    • Basic Setup
    • Scenarios
    • Capacity Feature
    • Package Management
      • Packages
      • Transfer
      • States
    • Commands
      • Packages
        • Package Command Parameters
        • DeAllocate Package Reservations Command
        • Channel Based Complete Packaging without Shipment Command
        • Complete Packaging with Shipment Command
        • Complete Packaging without Shipment Command
        • Package Refuse with Denial Reason Command
        • Product Not Found & Wrong Product Command
        • Product Not Found & Wrong Product Command Advanced
        • Package Packed for Refund Command
        • Block The Package For Action Command
        • Unblock the Package For Action Command
        • Update The Package’s Invoice
        • Manual Planning Command
      • Transfer
        • Transfer Order Advanced Command
        • Product for Transfer Not Found & Wrong Product Command
        • Transfer Delivered Command
        • Transfer Dispatch Command
        • Transfer Ready for Dispatch Command
        • Transfer Out Of Stock
      • Shipment
        • Shipment Order Command
        • Package Advanced Shipment Command
        • Ship The Package Command
        • Ship The Package without Shipment Integration Command
        • Update The Package’s Shipment Status Command
        • Update Shipment Info of Package Command
    • Inventory Locations & Engine
      • Properties & Domain Relation
      • Customization
      • Inventory Engine
    • Fulfillment
      • Shipments
      • Invoice Integration
    • Webhooks
      • Webhook Examples
        • Order Webhook
        • Package Webhook
        • Shipment Webhook
        • Stock Location Webhook
        • Transfer Webhook
    • Integrating OMS with Seller Center
  • Instore
    • Getting Started
    • Cash Register Integration
    • OTP (One Time Password) Process
    • Services
      • Password Reset Services
  • Marketplace Dashboard
    • N11 Marketplace Setup Configurations
    • Trendyol Marketplace Setup Configurations
    • Walmart Marketplace Setup Configurations
    • Amazon Marketplace Setup Configurations
    • Hepsiburada Marketplace Setup Configurations
  • Project Zero
    • Django
      • Basic Setup
      • Project Structure
        • Templates & Components
        • Private Dependencies
        • Omnife Project Submodule
        • Webpack
        • ESLint Rules
        • Bundles
        • Multilanguage & Translation
        • Environmental File
        • Custom Error Pages
        • Icon Font
      • Page Types
        • Static Pages & Flatpages
        • Account Page
          • Template Rendering in Account Pages
          • Forms & Validation
        • Basket Page
          • Redux Basket State
          • Basket Page - View
        • Checkout
          • Redux Checkout State
          • View & Template Rendering
          • Masking & Validation
      • Theming & Styling
      • Widgets
      • SEO Management
      • Extending Project Zero
    • Next.js
      • Basic Setup
      • Deployment
      • Static Assets
      • Plugins
      • Widgets
      • Icons
      • Localization
      • SEO Management
      • Advanced Usage
      • Data Fetching
        • Client
          • Account
          • Address
          • Basket
          • Checkout
          • Misc
          • Product
          • User
          • Wishlist
        • Server
          • Category
          • Flat Page
          • List
          • Menu
          • Product
          • SEO
          • Special Page
          • Widget
  • App Maker
    • Setup Your Environment
    • Plugin Quickstart
    • Create Project
    • Setup Existing Project
    • Deploy Project
    • Users and Roles
    • Add Public Key
    • App Maker CLI
    • Create App on Stores
      • Creating App on Apple App Store
      • Creating App on Google Play Store
    • Mobile App Framework
      • Configuration
      • Framework
      • Project Structure
        • Structure
        • Data Containers
        • Pages
      • Dependency Integration
        • Plugins
        • Akinon Plugin Adapter
  • Akifast
    • HPP
      • Getting Started
      • Authorization
      • Payment Session Creation
        • Key Points Before Creating a Payment Session
        • Creating Payment Session
        • Redirecting to the Payment Page
        • Errors Encountered During Payment Session Creation
      • Merchant Services
        • Shipping Query URL
        • Agreement Query URL
        • Other URLs
  • B2B
    • Getting Started
    • B2B Setup
  • Adds-on
    • Invoicer
      • Introduction
      • Invoice & Pay On Delivery Service
  • Channel App Template
    • Introduction
    • Installation and Usage
    • Development Steps
      • Folder Structure
      • Starting Step
      • Encoding the Sales Channel
        • Introduction
        • Setup
        • Products
        • Product Price
        • Product Stock
        • Product Image
        • Orders
        • Product Data
      • Adding a New Command to Akinon
      • Listening for External Requests
    • Architecture
      • Introduction
      • Integration
      • Services (Flows)
        • Introduction
        • Product Service
        • Price Service
        • Stock Service
        • Image Service
        • Order Service
  • Multi Regional Settings
    • Multi Regional Settings
Powered by GitBook

© 2025 Akinon. All rights reserved.

On this page
  • Install Python
  • Copy Project and Install Dependencies
  • Install Celery and Flower

Was this helpful?

  1. Channel App Template

Installation and Usage

PreviousIntroductionNextDevelopment Steps

Last updated 14 days ago

Was this helpful?

The application to be developed will connect to Omnitron as an application and use the user information defined in that application.

In the scenario to be tested in the local environment, the application can be tested without preparing the ACC application by using Omnitron user information. Once the necessary developments are considered ready, the application can be deployed and tested in the application server environment (ACC).

After creating the application on the Acc side, in the project to be used, the + New Application button is used to select the developed application, and the Install button is clicked. The channel and catalog are automatically created in the brand's Omnitron.

This documentation is prepared for Ubuntu-based operating systems.

Once the below steps are completed, everything required for the system will be ready.

  • Install Python

  • Copy Project and Install Dependencies

  • Install Celery and Flower

    • Trigger Tasks via Flower

Install Python

If the Python version is 3.8 or higher, it is sufficient for the Channel App Template project.

python --version
python3 --version

$: Python 3.8.10

If Python is not installed or your version is outdated, you can complete the Python installation with apt commands. First, it is recommended to run the apt install command. If it cannot find the version, you can proceed with add-apt-repository and then install it again with apt install. If your system's apt can access the package you are looking for, there is no need to add a new ppa in this way.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update -y
sudo apt install python3.10

The necessary packages to the system are installed by using apt commands. These packages consist of Python package manager pip, version control tool Git, task server Celery, and Redis for Celery's broker requirements.

sudo apt install python3-pip git redis-server python-celery-common
pip3 install --upgrade pip

Copy Project and Install Dependencies

The project is copied to the local system. Since git performs the cloning process in the currently active folder in the terminal, it is recommended to navigate to the preferred project folder before running the command.

git clone git@bitbucket.org:akinonteam/channel_app_template.git

You can install the necessary packages for the project with an active virtual environment.

pip install -r requirements.txt

Install Celery and Flower

Let's run Celery worker processes. User information and some environment variables will have different values for your environment.

  • MAIN_APP_URL: Omnitron URL, excluding the protocol.

  • OMNITRON_CHANNEL_ID: ID of the sales channel to which the application will connect.

  • OMNITRON_CATALOG_ID: Catalog ID of the connected sales channel.

# Export all at once (requires creating the .env file beforehand)
export $(grep -v '^#' .env | xargs)

# Export individually
export MAIN_APP_URL=localhost:8000
export OMNITRON_USERNAME=admin
export OMNITRON_PASSWORD=password
export OMNITRON_CHANNEL_ID=1
export OMNITRON_CATALOG_ID=1
export BROKER_HOST=127.0.0.1
export BROKER_PORT=6379
export BROKER_DATABASE_INDEX=4
export CACHE_HOST=127.0.0.1
export CACHE_PORT=6379
export CACHE_DATABASE_INDEX=3

celery -A channel_app.celery_app worker -l info

By default, the Redis server remains active after installation, especially if it is not shut down. You can test it with the ping command and shut it down using redis-server command.

redis-cli ping
redis-server

Flower is a web-based tool used to view and manage tasks related to Celery. If you do not have regular running jobs to manage or you are using an alternative tool, the installation of Flower is not mandatory.

To install Flower, you need to export some environment variables. Instead of exporting these values individually each time, you can save them in the .env file as KEY=VALUE and then use the command to export them all at once.

# Export all at once (requires creating the .env file beforehand)
export $(grep -v '^#' .env | xargs)

# Export individually
export BROKER_HOST=127.0.0.1
export BROKER_DATABASE_INDEX=4
export BROKER_PORT=6379

celery -A channel_app_template.celery_app flower --address=127.0.0.1 --port=8008

Trigger Tasks via Flower

Flower also allows triggering predefined tasks. To trigger tasks, the example curl request is as follows:

curl --request POST \
  --url https://<flower-url>/api/task/apply/channel_app_template.app.tasks.<task_name> \
  --header 'authorization: Basic <auth token>' \
  --header 'content-type: application/json' \
  --data '{\n"args":[]\n}'

If the request is successful, it returns the following response with a 200 status code:

HTTP/1.1 200 OK
Content-Length: 71
Content-Type: application/json; charset=UTF-8
{
  "state": "SUCCESS",
  "task-id": "c60be250-fe52-48df-befb-ac66174076e6",
  "result": 3
}

The task-id parameter in the response can be used to query the status of the triggered task via the Flower panel.

To avoid conflicts between dependencies of different projects, it is recommended to use a virtual environment. You can visit for virtual environment installation.

Celery is an open-source, asynchronous task queue or job queue based on distributed message passing. While it primarily focuses on real-time task processing and execution, it can also manage scheduled tasks. For more information, visit .

here
Celery
ACC