Announcing the FaunaDB Integration for ZEIT
Tags: serverless, zeit, fauna, jamstack
Published: 2019-12-19 16:49:55

Author: Lewis King
Date: December 17, 2019
[Originally published on the Fauna blog.](https://fauna.com/blog/announcing-the-faunadb-integration-for-zeit)

---

We’re excited to announce the FaunaDB integration for ZEIT.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/n19yamzjupdp447wv67r.png)

#Overview of ZEIT integration with FaunaDB#
This integration allows users to get started with a sample app using FaunaDB and ZEIT Now in 5 minutes or less. Users can connect to their FaunaDB instance and display their collections for a given database. Future functionality is planned to include performing CRUD operations directly from ZEIT.

#What is ZEIT?#
For the performance-obsessed, [ZEIT](https://zeit.co/) is the easiest way to deploy modern websites and apps. No more time lost on painstakingly configuring DNS, SSL, or CDN — ZEIT does all of that automatically, for free.

##Integration Capabilities##
What it does
We’ve created a simple ZEIT Integration which asks for a FaunaDB API key and displays the user’s collections from a database.

##Prerequisites##
- [Sign in to your FaunaDB account](https://dashboard.fauna.com/)
- Have at least one database with collections
 - If you are new to FaunaDB, [create a database here](https://dashboard.fauna.com/db-new/) & check the “Pre-populate with demo data” button
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/nrfzzadr2kn56qd68phf.png)
 - Sign in to your [ZEIT account](https://zeit.co/)
 - Ensure that you have a working version of [npm](https://www.npmjs.com/) on your machine
 - Ensure that ZEIT Now CLI is installed and logged in to your ZEIT account ([instructions here](https://zeit.co/docs#install-now-cli))


##Steps for integrating##
1. Go to the [FaunaDB integration page](https://zeit.co/integrations/faunadb) | Add
2. Select user account | Add (again)
3. Create root admin key [here](https://dashboard.fauna.com/keys)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/nc6dxxl60lxyh1bae1rf.png)
4. Paste root admin secret into the integration | Save Secret
5. Select a project | Create new project | enter faunadb-zeit-sample-app | CREATE
6. “Link To Project” the database you want to connect. To select child databases, click on the database name hyperlink
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/0hleysij8s2rp5jwy4x1.png)
7. Click the “Open in CodeSandbox” link, and continue to follow these steps in the [CodeSandbox app](https://codesandbox.io/s/github/fauna/faunadb-zeit-sample-app):
 - Click on the Deployment menu (the rocket icon in the sidebar)
 - Click the "Fork Sandbox" button
 - Return to the Deployment menu
 - Click "Now" (You'll need to sign in to Now when you're deploying for the first time)
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ocx81xf4pfxxlszw4541.png)
 - Click the deployment link and wait for building to complete to verify that the application lists the collections in your database
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/z66z5567six30fm9dse4.png)

Alternatively, to step 7, you can Clone & deploy the sample app yourself:

1. Clone & deploy sample app: 
 - git clone [https://github.com/fauna/faunadb-zeit-sample-app](https://github.com/fauna/faunadb-zeit-sample-app)
 - cd [faunadb-zeit-sample-app](https://github.com/fauna/faunadb-zeit-sample-app)
 - now --prod
2. Navigate to the project production URL (already in the clipboard on macOS) & confirm DB collections are listed.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/03q5qzq6m9jeowmz4euu.png)

#Conclusion#
With this simple integration, users can get started with a sample app using FaunaDB and ZEIT Now in 5 minutes or less.

Please visit [the FaunaDB documentation](https://docs.fauna.com/fauna/current/start/zeit.html) to learn more. And please [let us know](https://twitter.com/fauna) what you think so that we can incorporate your feedback into a future release.

What other integrations would you like to see implemented in FaunaDB? Please reach out to me on [Twitter](http://twitter.com/lew) or our [Community Slack](https://community.fauna.com/) and describe any other features that would make FaunaDB and ZEIT an obvious choice for your next project.