New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cc-core-cli

Package Overview
Dependencies
Maintainers
1
Versions
128
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.0
  • npm
  • Socket score

Version published
Weekly downloads
213
increased by26.04%
Maintainers
1
Weekly downloads
 
Created
Source

Commerce Connect CLI

Create SSH key

ssh-keygen -t rsa -b 4096

It will ask you the file name that you want to save

Enter a file in which to save the key (/Users/YOU/.ssh/id_ALGORITHM): [Press enter]

Please fill in with

~/.ssh/cconnect

Then should run command. It will copy your public key and please send it to your team lead.

cat ~/.ssh/cconnect.pub | pbcopy

Config SSH to use your key open ssh config with this command

sudo vim ~/.ssh/config

Add the below code and save the file

Host cconnect
Hostname bitbucket.com
IdentityFile ~/.ssh/cconnect

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 git+ssh://git@cconnect:shopstackthailand/cc-core-cli.git#latest

Create Commerce Connect Core Project

cc-cli init core <PATH>

Example .env file for run on dev mode

NODE_ENV=dev
PORT=3000
LOOP_BACK_IP=0.0.0.0
SESSION_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
CACHE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
MONGODB_URI=mongodb://root:axSdEpGZYNfdsX@{{YOUR DOCKER GATEWAY IP}}:27017/cc_dev?authSource=admin
ENABLE_SCHEDULE_ACTION=true
SERVE_STATIC=true
SERVE_STATIC_PATH=media
SINGLE_QUEUE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
QUEUE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
QUEUE_CONCURRENCY=1
MAX_WORKER=1
SWAGGER_ENABLE=true
CUSTOM_MODULES=
DEFAULT_API_KEY=997829b-1144-4049-aff9-b2b9394a394e
DEFAULT_SECRET_KEY=5ae1ave1j8otoxxvrv5gn2o9mtquk3we14hjxjha

Create Commerce Connect Admin Project

cc-cli init admin <PATH>

Example .env file for run on dev mode

NODE_ENV=develop PORT=4000 COOKIE_SECURE=false COOKIE_HTTP_ONLY=false COOKIE_SAME_SITE= SYSTEM_APP_KEY=SYSTEM_APP_KEY SYSTEM_SECRET_KEY=SYSTEM_SECRET_KEY API_GATEWAY=API_GATEWAY API_GATEWAY_MEDIA=API_GATEWAY_MEDIA GOOGLE_MAP_KEY=

Upgrade package

cc-cli upgrade

Create Commerce Connect Admin Project

cc-cli admin

Keywords

FAQs

Package last updated on 15 Aug 2023

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