Netlify + FaunaDB    

Example of using FaunaDB with Netlify functions

About this application

This application is using React for the frontend, Netlify Functions for API calls, and FaunaDB as the backing database.

faunadb netlify

Setup & Run Locally

  1. Clone down the repository

    git clone git@github.com:netlify/netlify-faunadb-example.git
  2. Install the dependencies

    npm install
  3. Bootstrap your FaunaDB table

    npm run bootstrap
  4. Set your Fauna API key value in your terminal enviroment

    You can create faunaDB keys here: https://dashboard.fauna.com/db/keys

    Create .env file in the root and add your secret details

    FAUNADB_SERVER_SECRET=YourFaunaDBKeyHere
  5. Run project locally

    npm start