Of course, everyone has. Most of the time, when we are trying out a new framework or language, one of the key things is data.
So what is Fauna?
Fauna is a data API which creates a global data store for your application in a couple of minutes. The database has GraphQL support. Using FaunaDB will help you focus on your application and will handle scaling, sharding, provisioning, latency and correctness for you and maybe the most important part, it has a free tier!
How to set up your database
- Create an account at Fauna.
- Choose a database name.
- (optional) toggle the Pre-populate with demo data toggle.
- Go to the Security tab and create a new key.
- Secure the secret in a separate file (we will use this secret).
Code time already?
In the code snippet below you can find a simple example of fetching an
User object from the
user collection by id.
Consider using this service in your next side project and let me know your thoughts on FaunaDB.