semvec/pypi-packages huggingface dataset:
cnc-core 0.1.0
cnc_core
Requires Python: >=3.10

# Expertly AI Collect&Compose services

## Setup Common BE

This service requires Common Backend to be setup and running. Refer to README in [expertly.ai.be-common](https://us-east-2.console.aws.amazon.com/codesuite/codecommit/repositories/expertly.ai.be-common/browse).

## Configuring

Create a `.env` file at the project root level, using `.env.example` as a reference.

## Setting up project using Docker (recommended)

### Build containers

```bash
make build
```

## Run application

```bash
make run
```

## To stop application

```bash
make stop
```

## Docs can be found at http://localhost:7700/swagger/

### The following arguments need to be passed in the make commands
- environment: This argument refers to build deployment environment. Possible values are: local, dev,
  prod, qa, stage. Default value is 'local'.
- Following arguments for the Docker build, using SSH configuration, to allow installing the 'expertly_ai' package from CodeCommit:
- ssh_key_path: This argument refers the SSH private key file path of host machin. Default value is '~/.ssh/id_rsa'
- ssh_key_file_name: This argument refers the file name of SSH private key file. Default value is 'id_rsa'
- ssh_config_path: This argument refers the SSH configuration file path of host machine.


## Installation
```bash
- #Create and init python virtual environment (recommended)
python3 -m venv venv
. venv/bin/activate

- #Install python requirements
pip install -r requirements.txt

- # Start the django server
python -m expertly_ai runserver

- # Start Celery
python -m expertly_ai runcelery

- #To view swagger documentation, open you web browser and hit below url.
http://127.0.0.1:8000/swagger/

```

<!-- #### Build the application for production
```bash
## To build application for production environment
- #Tech stack : docker + gunicorn + nginx + daphne + redis + postgres + celery

- #Build the application containers
make build environment="prod"

- #Run application
make run environment="prod"

- #Stop application
make stop environment="prod"

- #deploy application
make deploy environment="prod"
``` -->