This project provides a serverless API for managing an inventory system, built with AWS Lambda and Fauna. It allows basic CRUD operations on inventory items including creation, reading, updating, and deletion.
Following the tutorial for this project here.
- Clone the repository
- Install dependencies with
npm install
- Setup Fauna account and create a database
The API provides the following endpoints:
-
Create Inventory Item: POST / - Adds a new item to the inventory.
-
Read All Inventory Items: GET / - Retrieves all items from the inventory.
-
Read Specific Inventory Item: GET /{id} - Retrieves a specific item by its ID.
-
Update Inventory Item: PUT /{id} - Updates the details of a specific item.
-
Delete Inventory Item: DELETE /{id} - Removes an item from the inventory.
serverless offline
serverless deploy