cc-core-cli

1.0.106 • Public • Published

Commerce Connect CLI

Install Mongo & Redis

Please copy docker-compose.yml for start mongo database

version: '3.1'
    services:
        mongo:
            image: mongo:6.0.8
            restart: always
            ports:
              - 27017:27017
            environment:
              MONGO_INITDB_ROOT_USERNAME: root
              MONGO_INITDB_ROOT_PASSWORD: axSdEpGZYNfdsX

Please copy docker-compose.yml for start redis

version: '3.1'
    services:
        redis:
            image: redis
            restart: always
            ports:
              - 6379:6379

Install CLI as a global package

npm install -g cc-core-cli

Create Commerce Connect CORE

cc-cli init core <PATH>

Example .env file for run CORE on dev mode

NODE_ENV=dev
PORT=3000
LOOP_BACK_IP=0.0.0.0
MONGODB_URI=mongodb://root:axSdEpGZYNfdsX@{{YOUR DOCKER GATEWAY IP}}:27017/cc_db?authSource=admin
SESSION_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
CACHE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
QUEUE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/2
QUEUE_CONCURRENCY=1
MAX_WORKER=1
CUSTOM_MODULES=
DEFAULT_API_KEY=0939f325-e24f-4de3-8796-4d5e7243849c
DEFAULT_SECRET_KEY=ogi6xld0kftb5yvm6t17x2a6bmyipnfja6s7v5v2

Create Commerce Connect ADMIN UI

cc-cli init admin <PATH>

Example .env.develop file for run ADMIN UI on dev mode

NODE_ENV=develop
PORT=4000
COOKIE_SECURE=false
COOKIE_HTTP_ONLY=false
COOKIE_SAME_SITE=
SYSTEM_APP_KEY=0939f325-e24f-4de3-8796-4d5e7243849c
SYSTEM_SECRET_KEY=ogi6xld0kftb5yvm6t17x2a6bmyipnfja6s7v5v2
API_GATEWAY=http://127.0.0.1:3000/api/v1
API_GATEWAY_MEDIA=http://127.0.0.1:3000
GOOGLE_MAP_KEY=

Create Commerce Connect MODULE

cc-cli init module <PATH>

Create Commerce Connect ADMIN MODULE

cc-cli init admin_module <PATH>

Upgrade package

cc-cli upgrade

Package Sidebar

Install

npm i cc-core-cli

Weekly Downloads

2,149

Version

1.0.106

License

MIT

Unpacked Size

2.61 MB

Total Files

345

Last publish

Collaborators

  • shopstack