{"version":3,"sources":["webpack:///../src/documentation/overview/BundleGettingStarted.mdx"],"names":["_frontmatter","layoutProps","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","parentName","isMDXComponent"],"mappings":"mfAMO,IAAMA,EAAe,Q,qOAE5B,IAKMC,EAAc,CAClBD,gBAEIE,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,E,oIACF,mBACD,OAAO,YAACJ,EAAD,KAAeD,EAAiBK,EAAhC,CAAuCD,WAAYA,EAAYE,QAAQ,cAG5E,iBAAQ,CACN,GAAM,0BADR,0BAGA,oNAC2C,mBAAGC,WAAW,KAAQ,CAC7D,KAAQ,4DAD+B,4BAD3C,iBAIA,iBAAQ,CACN,GAAM,gBADR,gBAGA,iEACA,sBACE,kBAAIA,WAAW,MAAf,+BACA,kBAAIA,WAAW,MAAf,iBACA,kBAAIA,WAAW,MAAf,qCACA,kBAAIA,WAAW,MAAf,mCAAwD,mBAAGA,WAAW,MAAS,CAC3E,KAAQ,4DAD4C,4BAAxD,KAGA,kBAAIA,WAAW,MAAf,4BACA,kBAAIA,WAAW,MAAf,2BAEF,iBAAQ,CACN,GAAM,4BADR,4BAGA,2YAGA,uBAAK,sBAAMA,WAAW,OAAU,IAA3B,0PAML,iBAAQ,CACN,GAAM,mBADR,mBAGA,gaAGA,uBAAK,sBAAMA,WAAW,OAAU,IAA3B,4GAGL,iBAAQ,CACN,GAAM,eADR,eAGA,4DAA2C,0BAAYA,WAAW,KAAvB,UAA3C,qEACA,uBAAK,sBAAMA,WAAW,OAAU,CAC5B,UAAa,mBADZ,mCAKL,6BAAY,0BAAYA,WAAW,KAAvB,SAAZ,8EACA,oFAAmE,mBAAGA,WAAW,KAAQ,CACrF,KAAQ,0BADuD,yBAAnE,uHAGA,qBAAG,sBAAQA,WAAW,KAAnB,gEAAwF,mBAAGA,WAAW,UAAa,CAChH,KAAQ,yFAD6E,iBAAxF,MAGH,iBAAQ,CACN,GAAM,4BADR,4BAGA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AQA,WAAW,MAAnB,eAEtB,6JACA,sBACE,kBAAIA,WAAW,MACb,iBAAGA,WAAW,MAAK,sBAAQA,WAAW,KAAnB,WACnB,iBAAGA,WAAW,MAAd,wDAA4E,mBAAGA,WAAW,KAAQ,CAC9F,KAAQ,qBADgE,iBAA5E,kDAGA,kBAAIA,WAAW,MACb,kBAAIA,WAAW,MACb,iBAAGA,WAAW,MAAK,sBAAQA,WAAW,KAAnB,aACnB,iBAAGA,WAAW,MAAd,iIACA,kBAAIA,WAAW,MACb,kBAAIA,WAAW,MAAK,sBAAQA,WAAW,MAAnB,SAEtB,iBAAGA,WAAW,MAAd,oRACA,kBAAIA,WAAW,MACb,kBAAIA,WAAW,MAAK,sBAAQA,WAAW,MAAnB,gBAEtB,iBAAGA,WAAW,MAAd,6GAAiI,kBAAIA,WAAW,KAAf,kDACjI,kBAAIA,WAAW,MACb,kBAAIA,WAAW,MAAK,sBAAQA,WAAW,MAAK,kBAAIA,WAAW,UAAf,qBAE9C,iBAAGA,WAAW,MAAd,kQAKN,kBAAIA,WAAW,MACb,oBAAIA,WAAW,MAAS,CACtB,GAAM,YADR,aAKJ,gJ,mOAKJJ,EAAWK,gBAAiB","file":"component---src-documentation-overview-bundle-getting-started-mdx-956526edd43d4bb3c636.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsx mdx */\n\nimport DefaultLayout from \"/codebuild/output/src1546723176/src/kinetic-ui/docs/node_modules/gatsby-theme-docz/src/base/Layout.js\";\nexport const _frontmatter = {};\n\nconst makeShortcode = name => function MDXDefaultShortcode(props) {\n console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n return
;\n};\n\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return \n\n\n

{`Bundle Getting Started`}

\n

{`If you would like to get started building your own bundle or customizing you will need to first check out your bundle project. If you're just\ngetting started you'll want to check out the `}{`Customer Default Project`}{` source code.`}

\n

{`Requirements`}

\n

{`In addition you will need the following:`}

\n \n

{`Development OAuth Client`}

\n

{`In order for your bundle to authenticate correctly with your Kinetic Platform you will need to create a valid OAuth Client\nfor it to use. This is how your environment knows to send authentication credentials back to your development server. To\nset this up you will need to navigate to the OAuth Security tab (Kinetic Management Console > Space > Settings > OAuth Tab):`}

\n
{`Name          ->  Kinetic Bundle - Dev\nDescription   ->  oAuth Client for client-side bundles in development mode\nClient ID     ->  kinetic-bundle-dev\nClient Secret ->  \nRedirect URI  ->  http://localhost:3000/app/oauth/callback\n`}
\n

{`Trusted Domains`}

\n

{`The server must also have trusted domains configured in order for your local development server to be allowed to contact\nyour Kinetic Platform. These settings allow the local development server's bundle code to access the platform's API and\nto embed frames (which is needed for authentication). Navigate to Space Security Tab (Kinetic Management Console > Space > Settings > Security Tab):`}

\n
{`Trusted Resource Domain   ->    http://localhost:3000\nTrusted Frame Domain      ->    localhost:3000\n`}
\n

{`Quick Start`}

\n

{`From a command line open inside the `}{`bundle`}{` directory, run the below commands to start a development server.`}

\n
{`$ yarn install\n$ yarn start\n`}
\n

{`Upon `}{`start`}{`, you will be prompted to enter a Kinetic Request CE server to connect to.`}

\n

{`Once the development server starts up, you can access it at `}{`http://localhost:3000`}{`. Any changes you make to your local code will then automatically cause the server to reload with your new changes.`}

\n

{`For detailed bundle development instructions, please see the `}{`Bundle README`}{`.`}

\n

{`Starting a Custom Bundle`}

\n

{`Requirements:`}{` GitHub account and knowledge of git.`}

\n

{`In order to customize or build your own custom bundle, it is recommended to begin with this project. You can either `}{`fork`}{` this repository, or create your own new repository and configure this repository as its upstream, by following the instructions below.`}

\n
    \n
  1. {`Create a Github repository.`}
  2. \n
\n

{`Do NOT check the 'Initialize this repository with a README' checkbox.`}{` It must remain unchecked so that we can merge in the history from this repository to allow future syncing.`}

\n

{`Let's use the repository name `}{`awesome-custom-bundle`}{` in the below examples.`}

\n
    \n
  1. {`Clone your repository to your local machine`}{` and change to the newly cloned repository.`}
  2. \n
\n
{`$ git clone https://github.com//awesome-custom-bundle.git\n> Cloning into 'awesome-custom-bundle'...\n$ cd awesome-custom-bundle\n`}
\n
    \n
  1. {`Set this repository as the upstream in your `}{`awesome-custom-bundle`}{` repository. We'll also update the push upstream url to an invalid value to prevent accidental pushes to the upstream, in case you happen to have access to do so. Finally, running `}{`git remote -v`}{` will show us the configured remotes.`}
  2. \n
\n
{`$ git remote add upstream https://github.com/kineticdata/customer-project-default.git --no-tags\n$ git remote set-url --push upstream no_push\n$ git remote -v\n> origin      https://github.com//awesome-custom-bundle.git (fetch)\n> origin      https://github.com//awesome-custom-bundle.git (push)\n> upstream    https://github.com/kineticdata/customer-project-default.git (fetch)\n> upstream    no_push (push)\n`}
\n
    \n
  1. {`Fetch the upstream branches. Then create a branch in your repo by checking out the upstream branch. This will bring over all the code and history from the upstream, allowing you to merge in future changes from the upstream to your local repo. The `}{`--no-track`}{` flag will make sure this branch does not track the upstream, as we'll want it to track origin since we'll be making changes in it. Lastly, we'll push the our master branch to the origin remote.`}
  2. \n
\n
{`$ git fetch upstream\n> From https://github.com/kineticdata/customer-project-default\n>  * [new branch]      develop    -> upstream/develop\n>  * [new branch]      master     -> upstream/master\n$ git checkout -b master upstream/master --no-track\n$ git push -u origin master\n> To https://github.com//awesome-custom-bundle.git\n>  * [new branch]      master     -> master\n`}
\n

{`You are now ready to start developing in your custom bundle repository. See the `}{`Bundle README`}{` for detailed bundle development instructions.`}

\n

{`In order to pull the latest changes from the upstream `}{`customer-project-default`}{` repository into your custom `}{`awesome-custom-bundle`}{` repository, follow the below instructions. You will need to manually resolve any conflicts during the merge.`}

\n
{`$ git checkout master\n$ git fetch upstream\n$ git merge upstream/master\n$ git push origin master\n`}
\n
{`Notes`}
\n \n

{`Folder Structure`}

\n
{`  .\n  ├─ artifacts               # Contains artifacts generated for the project\n  ├─ bundle                  # Contains the bundle React code\n  │  ├─ packages             # Individual packages that define different parts of the bundle\n  │  │  ├─ app               # Entry point to the bundle application\n  │  │  ├─ components        # Package that allows for overriding common components\n  │  │  └─ ...               # Other custom packages may be added\n  │  └─ package.json         # Monorepo configuration file\n  └─ plugins                 # Contains custom plugins for the project\n`}
\n \n

{`Directory containing artifacts for the project, such as space exports generated from the SDK, or special documentation such as ADRs.`}

\n \n

{`Directory containing all of the custom plugins (such as handlers, bridge adapters, etc.) created for the project.`}

\n\n
;\n}\n;\nMDXContent.isMDXComponent = true;\n "],"sourceRoot":""}