Get started with Qwik and Xata
<p>In this guide, you’ll create a new <a href="https://qwik.builder.io/" rel="noopener ugc nofollow" target="_blank">Qwik</a> application and walk through adding Xata database. You’ll build the following basic blog application features:</p>
<ol>
<li>List all blog posts</li>
<li>Retrieve and view a single blog post</li>
</ol>
<h1>Before you begin</h1>
<p>Install the Xata CLI:</p>
<pre>
npm install -g @xata.io/cli</pre>
<p>Once installed, authenticate the Xata CLI with your Xata account. If you don’t already have an account, you can use the same workflow to signup for a new account. Run the following command to begin the authentication workflow:</p>
<pre>
xata auth login</pre>
<p>On completion, the command will create a new API key for your user account, which you should see in the <a href="https://app.xata.io/settings" rel="noopener ugc nofollow" target="_blank">account settings page within the Xata UI</a>. That key will also be stored locally on your computer (the location might vary for each OS). It looks like this:</p>
<pre>
# .config/xata/credentials
[default]
apiKey=YOUR_API_KEY_HERE</pre>
<h1>Create a new Qwik.js app</h1>
<p>Let’s begin by create a new Qwik.js application</p>
<p><a href="https://medium.com/@yusril.ihsanul.alim/get-started-with-qwik-and-xata-ccd0199d7eaf">Visit Now</a></p>