Skip to content

Commit 9de1383

Browse files
committed
Updated instructions
1 parent 897ffae commit 9de1383

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

dataconnect/app/src/pages/Home.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,32 @@ const ConditionalRender = ({ condition, preferred, alternate }: { condition: boo
88

99
const PlaceholderMessage = () => (
1010
<div className="min-h-screen flex items-center justify-center text-center text-white">
11-
<div className='px-4'>
12-
<h1 className='text-4xl'>To get Started with Firebase Data Connect:</h1>
13-
<ol className='list-decimal'>
14-
<li>Add {window.location.host}<a target="_blank" className="underline text-blue-600 hover:text-blue-800 visited:text-purple-600" href="https://console.firebase.google.com/project/_/authentication/settings"> to your list of domains</a></li>
11+
<div className="px-4">
12+
<h1 className="text-4xl">To get Started with Firebase Data Connect:</h1>
13+
<ol className="list-decimal">
14+
{window.location.hostname != "localhost" && (
15+
<li>
16+
Add {window.location.host}
17+
<a
18+
target="_blank"
19+
className="underline text-blue-600 hover:text-blue-800 visited:text-purple-600"
20+
href="https://console.firebase.google.com/project/_/authentication/settings"
21+
>
22+
{" "}
23+
to your list of domains
24+
</a>
25+
</li>
26+
)}
1527
<li>Open app/src/lib/firebase.tsx and replace the firebaseConfig </li>
1628
<li>Open the Firebase Data Connect Extension</li>
1729
<li>Select your project</li>
1830
<li>Click "Start Emulators"</li>
31+
<li>Open dataconnect/moviedata_insert.gql</li>
32+
<li>Click Run (Local)</li>
1933
</ol>
2034
</div>
2135
</div>
22-
)
36+
);
2337

2438
export default function HomePage() {
2539
const [topMovies, setTopMovies] = useState([]);

0 commit comments

Comments
 (0)