Creating new PlatformOS project

Command

$ insites new [project_name]

Usage

$ insites new myNewApp

Description

A command that creates marketplace-kit app, initialise git, install dependencies and download Insites admin.

Options

  1. -h, --help. It will display help command.

Features

  1. Checks if app requirements are existing
  2. Setups git procees
  3. Installs App Dependencies
  4. Setups folder structure for marketplace-kit
  5. Initialise Marketplace-kit
  6. Download Insites Admin to “marketplace_builder” directory
  7. Performs Initial commit on empty repository (git status, git add, commitViaCMZ, and git push)
  8. Sets initial data for Insites Admin
  9. Validates user to set email as an initial administrator for Insites Admin

Setup Git Process

  1. Validates user to setup git process
  2. Checks if entered repository is empty or not
  3. Clones remote repository to app directory. If entered repository is empty, validation to execute initial commit to “master” branch will be performed.

Checks app requirements

  1. Node
  2. Git
  3. Marketplace CLI

Validations for Marketplace-kit

  1. Validates user to enter aws code commit or github repository
  2. Validates user to enter environment name for marketplace-kit
  3. Validates user to choose purpose of environment from dev/stg/prd
  4. Validates user to enter pOS url of project
  5. Validates user to enter partner-portal credentials such as email and password

Installation of App Dependencies

  1. Creates insites config file
  2. Creates .gitignore file
  3. Creates package.json file
  4. Creates webpack config file
  5. Install commitizen dependencies
  6. Install ESLint dependencies
  7. Install Webpack dependencies
  8. Install JS utils such as axios and lodash

Setup of linter rules

  1. Creates script and style folders located in “marketplace_builder/assets” folder directory
  2. Creates “src” folder for “Typescript” and “SCSS”
  3. Creates starter file for style and script

Setup of Initial data for Insites Admin

  1. Creates dummy data migration file for system fields <migration_timestamp>_insites_system_field_dummy_data.
  2. Generates migration script
  3. Creates GraphQL query
  4. Deploys to current environment
  5. Runs migration script
  6. Deletes created migration files

Setup of Administrator role for Insites Admin

  1. Creates data migration file for system fields <migration_timestamp>_set_initial_email_for_admin_role.
  2. Generates migration script
  3. Creates GraphQL query
  4. Deploys to current environment
  5. Runs migration script
  6. Deletes created migration files