Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cc-core-cli

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-core-cli

Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.

  • 1.0.117
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
41
increased by51.85%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 18 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc