This is a simple Notes CRUD (Create, Read, Update, Delete) API built using Node.js, Express, and Firebase Firestore. It includes basic validation, error handling, timestamps, and Swagger API documentation.
Clone the project
git clone https://github.com/Ansalpandey/Note-CRUD.gitGo to the project directory
cd Note-CRUDInstall dependencies
npm installStart the server
npm run startTo run this project, you will need to add the following environment variables to your .env file
FIREBASE_SERVICE_ACCOUNT
Add Firebase Service Account credential in minified JSON
- Create a new note
- Retrieve all notes
- Retrieve a note by ID
- Update a note by ID
- Delete a note by ID
- Includes Swagger API documentation
- Uses Firebase Firestore as database
- Timestamps (
createdAt,updatedAt) included
- Backend: Node.js + Express.js
- Database: Firebase Firestore
- Validation: express-validator
- Docs: Swagger