GithubHelp home page GithubHelp logo

job_manager's Introduction

JobManager

About project

Project JobManager is a web application designed for the automation of management accounting.

This project written in Python using the Django framework. For installation using the Docker, the project contains two containers: the Django application and the PostgreSQL database.

Installation

Clone the repository from GitHub:

git clone https://github.com/maximchikAlexandr/job_manager.git

Create a file named '.env' in the root directory:

cd job_manager/job_manager_proj/
nano .env

and fill it with the following environment variables:

# Django parameters
DEBUG=True
SECRET_KEY="the_key_used_for_encryption"
PRODUCTION_HOST=some_prod_host
DJANGO_SUPERUSER_PASSWORD="your_password"
DJANGO_SUPERUSER_EMAIL="your_email"
DJANGO_SUPERUSER_USERNAME="your_username"

# database parameters
POSTGRES_DB="database_name" 
POSTGRES_USER="your_database_username"
POSTGRES_PASSWORD="your_database_password"
DB_HOST="your_database_host"
DB_PORT="port_of_your_database_in_container"
DB_OUT_PORT="outer_port_of_your_database"

# Grafana
GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD="your_password"
GF_SERVER_ROOT_URL="your_host"/monitoring/grafana/

# pgadmin4
PGADMIN_DEFAULT_EMAIL="your_email"
PGADMIN_DEFAULT_PASSWORD="your_password"
PGADMIN_LISTEN_PORT=15432

# Celery parameters
CELERY_HOST=redis
CELERY_PORT=6379

# Yandex disk
YANDEX_TOKEN="yandex_token_for_your_application"
YANDEX_SK="yandex_secret_key_for_opening_documents"

# Bitrix24
BX24_HOSTNAME="your_Bitrix24_host"
BX24_TOKEN_ADD="token_for_query_crm.deal.add"
BX24_TOKEN_UPDATE="token_for_query_crm.deal.update"
BX24_TOKEN_LIST="token_for_query_crm.deal.list"

Create and start the docker containers:

docker compose up -d

Open up the browser and navigate to the main page of the project at http://localhost:8001/.

Yandex Disk

To use the application, you need to grant full access permissions to Yandex.Disk:

https://oauth.yandex.ru/client/new/id

To obtain an OAuth token:

https://yandex.ru/dev/id/doc/ru/access

Bitrix24

Create three external webhooks in your Bitrix24 account: https://helpdesk.bitrix24.com/open/12357038/

The webhooks are needed for the following methods:

  1. crm.deal.add
  2. crm.deal.update
  3. crm.deal.list

API documentation of Bitrix24:

https://dev.1c-bitrix.ru/rest_help/

API Documentation

Swagger is utilized for API documentation. If the application is deployed on the local machine, the documentation can be accessed through the following link:

http://localhost:8001/doc/

job_manager's People

Contributors

maximchikalexandr avatar

Watchers

 avatar

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.