Skip to content
Generate files with Plop to get going with FaunaDB
JavaScript HTML TypeScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Generate Fauna Files with Plop

Running plop and answering the prompts will add an api file with some basic reusable Fauna methods to your repo. This would likely make more sense as a CLI tool than a flop file generator, but as more template files can be added, can also ask more questions in Plop as maybe you will only need a few methods for a simple app. Or maybe you need a few dozen or maybe you need hundreds. Can run different plop with different templates as needed.

As an example maybe you start with Create a Class, Create a Single Record, Get a Single Record, Delete a Single Record. So then can run an initial fauna scaffold file. Then come back and run another plop command later on when you need more methods/ switch in a different template file.

You can’t perform that action at this time.