In order to setup your local development environment, you have two options.

### Option 1: Platform integration

<!-- TODO Rewrite Why are we showing the use of the amplify-app NPX script? should we still do that?-->

import js1 from '/src/fragments/lib/datastore/js/getting-started/30_platformIntegration.mdx';

<Fragments fragments={{ js: js1 }} />

import reactnative0 from '/src/fragments/lib/datastore/react-native/getting-started/30_platformIntegration.mdx';

<Fragments fragments={{ 'react-native': reactnative0 }} />

import android2 from '/src/fragments/lib/datastore/android/getting-started/30_platformIntegration.mdx';

<Fragments fragments={{ android: android2 }} />

### Option 2: Use Amplify CLI

Instead of using the platform integration, you can alternatively use the Amplify CLI on its own. This option is particularly **useful for existing projects** where Amplify is already configured and you want to add DataStore to it.

import all0 from '/src/fragments/lib/datastore/native_common/setup-env-cli.mdx';

<Fragments fragments={{ all: all0 }} />

import js2 from '/src/fragments/lib/datastore/js/setup-env-js.mdx';

<Fragments fragments={{ js: js2, "react-native": js2 }} />

import reactnative1 from '/src/fragments/lib/datastore/react-native/getting-started/polyfills.mdx';

<Fragments fragments={{ 'react-native': reactnative1 }} />
