Skip to content

Instantly share code, notes, and snippets.

@NickFoden
Last active July 16, 2019 17:09
Show Gist options
  • Save NickFoden/056d35cbfbd8a7ced09e27578c20dde7 to your computer and use it in GitHub Desktop.
Save NickFoden/056d35cbfbd8a7ced09e27578c20dde7 to your computer and use it in GitHub Desktop.
A Create React App script to add folders and methods for FaunaDB

https://www.npmjs.com/package/fauna-nf

fauna-nf

This package is a script that can be used with CRA - Create React App

To use you run the regular CRA command and append --scripts-version fauna-nf

This will set you up with a standard Create React App which includes a fauna folder and a file with some basic methods to get you started working with faunadb.

create-react-app new-app-name --scripts-version fauna-nf

After it completes you will need to run

yarn add faunadb

And then follow instructions in the fauna\index.js file

Rather than maintain a full fork of the project and include the yarn add faunadb command, this scripts option is lightweight way to get started with some basic boiler plate. As the author dives into more faunadb this package will be updated with more general methods.

This package includes scripts and configuration used by Create React App.
Please refer to its documentation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment