A simple express api, that utilizes firebase cloud functions & firestore and performs CRUD operations
- Uses firebase local emulator suite.
- Ubuntu LTS
- Firebase Cloud Firestore
- Firebase Local Emulator Suite
- Firebase Cloud Function
- Expressjs
- Clone the following repository to local machine
git clone https://github.com/Godwin254/inventory-api-firebase/
- Navigate to the project folder
cd inventory-api-firebase
- Navigate to the functions directory
cd functions
- Install all dependencies
npm install
- Start the firebase emulator
npm run serve
- Visit the generated functions url to send requests to the inventory endponts
GET functions_url/inventories
- retrieves all inventoriesGET functions_url/inventories/id
- retrieves a single inventoryPOST functions_url/inventories
- creates an inventoriesPUT functions_url/inventories/id
- updates a single inventoryDELETE functions_url/inventories
- delete a single inventory
Chech the postman documentation