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.
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!
- 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).
In the code snippet below you can find a simple example of fetching a
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.