Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

Configuring Cloud Firestore in AdonisJs for CRUD requests

Blog post from LogRocket

Post Details
Company
Date Published
Author
Kenneth Ekandem
Word Count
2,113
Language
-
Hacker News Points
-
Summary

AdonisJs, a Node.js framework tailored for microservices, is hailed as an ideal choice for developers transitioning from PHP/Laravel to JavaScript, offering an MVC pattern and supporting both SQL and NoSQL databases like Firebase. This guide demonstrates the process of integrating Google Cloud Firestore with AdonisJs, encompassing the setup of a Firestore database, the installation of AdonisJs, and configuration for database storage. It details the creation of CRUD API requests using a Firestore model and an AdonisJs UserController, with routes established for each operation. The tutorial also covers the installation of necessary packages like Firebase admin SDK and AdonisJs validators, along with testing procedures using Postman while ensuring security through CSRF protection. The guide concludes by emphasizing the successful development of APIs for managing data with AdonisJs and Firestore, encouraging further exploration and use in personal projects.