2. Open the file and update the configuration
- settings.
+ >2. Open the file
+ and update the configuration settings.
-
+
{#if isPlatformCreated}
-
+
1. If you're starting a new project, you can clone our starter kit from
@@ -206,7 +210,7 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject(page.params.region, page.params.proj
1. If you're starting a new project, you can clone our starter kit from
@@ -276,16 +281,18 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.reg
2. Open the file
- and update the configuration settings.
+ >2. Replace
+ to reflect the values below:
-
+
3. Run the app on a connected device or simulator, then click the 3. Run the app on a connected device or simulator using , then click the button to verify the setup.
@@ -343,7 +350,7 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.reg
secondary
disabled={isCreatingPlatform}
href={location.pathname}>
- Go to dashboard
+ Skip, go to dashboard
{/if}
diff --git a/src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte b/src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte
index edbd6a355..a8ef1c9fa 100644
--- a/src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte
+++ b/src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte
@@ -25,6 +25,7 @@
import ConnectionLine from './components/ConnectionLine.svelte';
import OnboardingPlatformCard from './components/OnboardingPlatformCard.svelte';
import { PlatformType } from '@appwrite.io/console';
+ import { project } from '../../store';
let showExitModal = false;
let isPlatformCreated = false;
@@ -36,6 +37,7 @@
'\ngit clone https://github.com/appwrite/starter-for-react-native\ncd starter-for-react-native\n';
const updateConfigCode = `EXPO_PUBLIC_APPWRITE_PROJECT_ID=${projectId}
+EXPO_PUBLIC_APPWRITE_PROJECT_NAME="${$project.name}"
EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}`;
export let platform: PlatformType = PlatformType.Reactnativeandroid;
@@ -91,6 +93,11 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
type: platform
});
+ addNotification({
+ type: 'success',
+ message: 'Platform created.'
+ });
+
invalidate(Dependencies.PROJECT);
invalidate(Dependencies.PLATFORMS);
} catch (error) {
@@ -210,7 +217,7 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
{#if isPlatformCreated}
-
+
1. If you're starting a new project, you can clone our starter kit from
@@ -235,7 +242,13 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
3. Run the app on a connected device or simulator, then click the 3. Run the app on a connected device or simulator using followed by , then click the button to verify the setup.
@@ -290,7 +303,7 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
secondary
disabled={isCreatingPlatform}
href={location.pathname}>
- Go to dashboard
+ Skip, go to dashboard
{/if}
diff --git a/src/routes/(console)/project-[region]-[project]/overview/platforms/createWeb.svelte b/src/routes/(console)/project-[region]-[project]/overview/platforms/createWeb.svelte
index 14b4a0358..f686e4a59 100644
--- a/src/routes/(console)/project-[region]-[project]/overview/platforms/createWeb.svelte
+++ b/src/routes/(console)/project-[region]-[project]/overview/platforms/createWeb.svelte
@@ -128,7 +128,15 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
smallIcon: IconAngular,
portNumber: 4200,
runCommand: 'npm run start',
- updateConfigCode: `appwriteEndpoint: '${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}',\nappwriteProjectId: '${projectId}',\nappwriteProjectName: '${$project.name}'`
+ updateConfigCode: `export const environment: {
+ appwriteEndpoint: string;
+ appwriteProjectId: string;
+ appwriteProjectName: string;
+} = {
+ appwriteEndpoint: '${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}',
+ appwriteProjectId: '${projectId}',
+ appwriteProjectName: '${$project.name}'
+};`
},
{
key: 'js',
@@ -167,6 +175,11 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
type: platform
});
+ addNotification({
+ type: 'success',
+ message: 'Platform created.'
+ });
+
invalidate(Dependencies.PROJECT);
invalidate(Dependencies.PLATFORMS);
} catch (error) {
@@ -273,7 +286,7 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
{#if isPlatformCreated && !isChangingFramework}
-
+
1. If you're starting a new project, you can clone our starter kit from
@@ -290,7 +303,7 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
{#if selectedFramework.key === 'angular'}
2. Change 2. Replace
to reflect the values below:
@@ -303,7 +316,10 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p