Skip to content

PublicDataWorks/llead-backend

Repository files navigation

LLEAD - Backend

CircleCI Coverage Status

Prerequisites

  • Docker: Development environment, better install latest version.
  • Pycharm as the best IDE for DJango framework.
  • Pyenv setup python version and venv as well. (Python 3.8.12 work very well).

Quick start

  • Create .env file from .env.example template and update environment variables.
  • bin/dev.sh - build package inside Docker environment (and for your venv as well).
  • bin/manage.sh migrate migrate your database migrations.
  • bin/manage.sh createsuperuser create admin user.
  • bin/manage.sh init_project_config create initial project configuration.
  • docker-compose up - start Django development container. It should automatically reload when code change.

Useful command

  • bin/manage.sh - run any and all of your Django command.
  • bin/manage.sh createsuperuser create admin user.
  • bin/manage.sh migrate migrate your database migrations.
  • bin/manage.sh init_project_config create initial project configuration.
  • bin/manage.sh run_daily_tasks run daily tasks.

Package install

Testing

  • Run test bin/test.sh
    • Run all tests: bin/test.sh
    • Run a test file: bin/test.sh file_path
    • Run a specific test bin/test.sh file_path::class_name::function_name
      • ex: bin/test.sh ipno/documents/tests/test_views.py::DocumentsViewSetTestCase::test_retrieve

Automatically push code to llead-backend repository

  • The pushing code process is performed by CircleCI which is configured in config.yml file

Docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors